:root {
  --articles-card: var(--ct-surface);
  --articles-soft: var(--ct-surface-soft);
  --articles-border: var(--ct-border);
  --articles-text: var(--ct-ink);
  --articles-muted: var(--ct-muted);
  --articles-shadow: 0 16px 42px rgb(var(--ct-rgb-ink) / 0.07);
}

html[data-theme="dark"] {
  --articles-shadow: 0 16px 42px rgb(0 0 0 / 0.27);
}

.articles-page,
.article-detail-page {
  background: var(--ct-bg);
}

.articles-main,
.article-detail-main {
  overflow: hidden;
}

.articles-hero {
  padding: 24px 0 20px;
}

.articles-featured {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--articles-border);
  border-radius: 24px;
  background: var(--articles-card);
  box-shadow: var(--articles-shadow);
}

.articles-featured__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.articles-featured__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      270deg,
      rgb(var(--ct-rgb-surface) / 0.98) 0%,
      rgb(var(--ct-rgb-surface) / 0.95) 28%,
      rgb(var(--ct-rgb-surface) / 0.82) 46%,
      rgb(var(--ct-rgb-surface) / 0.44) 61%,
      rgb(var(--ct-rgb-surface) / 0.12) 74%,
      transparent 88%
    );
}

html[data-theme="dark"] .articles-featured__overlay {
  background:
    linear-gradient(
      270deg,
      rgb(15 23 34 / 0.98) 0%,
      rgb(15 23 34 / 0.95) 28%,
      rgb(15 23 34 / 0.83) 46%,
      rgb(15 23 34 / 0.48) 61%,
      rgb(15 23 34 / 0.18) 74%,
      transparent 88%
    );
}

.articles-featured__content {
  position: relative;
  z-index: 2;
  width: min(48%, 590px);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  padding: 42px 46px;
}

.articles-featured__eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--ct-primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.articles-featured__badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid var(--ct-primary-border);
  border-radius: 999px;
  color: var(--ct-primary-strong);
  background: rgb(var(--ct-rgb-surface) / 0.68);
  backdrop-filter: blur(12px);
  font-size: 0.74rem;
  font-weight: 900;
}

.articles-featured__badge i {
  font-size: 0.7rem;
}

.articles-featured h1 {
  max-width: 520px;
  margin: 0;
  color: var(--articles-text);
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.articles-featured__content > p {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--articles-muted);
  font-size: 0.9rem;
  line-height: 2;
}

.articles-featured__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 20px;
  color: var(--articles-muted);
  font-size: 0.74rem;
}

.articles-featured__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.articles-featured__meta i {
  color: var(--ct-ink-soft);
}

.articles-featured__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.articles-featured__stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.articles-featured__stats > div {
  min-width: 132px;
  padding: 12px 14px;
  border: 1px solid rgb(var(--ct-rgb-border) / 0.72);
  border-radius: 16px;
  background: rgb(var(--ct-rgb-surface) / 0.62);
  backdrop-filter: blur(10px);
}

.articles-featured__stats strong {
  display: block;
  color: var(--articles-text);
  font-size: 1rem;
  font-weight: 900;
}

.articles-featured__stats span {
  display: block;
  margin-top: 4px;
  color: var(--articles-muted);
  font-size: 0.72rem;
}

.articles-primary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 22px;
  border-radius: 12px;
  color: var(--ct-primary-ink);
  background: var(--ct-primary);
  box-shadow: var(--ct-shadow-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.articles-primary-button:hover {
  transform: translateY(-1px);
  background: var(--ct-primary-hover);
  box-shadow: 0 13px 28px rgb(var(--ct-rgb-primary) / 0.25);
}

.articles-secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid rgb(var(--ct-rgb-border) / 0.82);
  border-radius: 12px;
  color: var(--articles-text);
  background: rgb(var(--ct-rgb-surface) / 0.62);
  backdrop-filter: blur(10px);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.articles-secondary-button:hover {
  transform: translateY(-1px);
  border-color: var(--ct-primary-border);
  color: var(--ct-primary-strong);
}

.articles-featured__slogan {
  position: absolute;
  z-index: 2;
  left: 34px;
  bottom: 34px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  direction: ltr;
  color: #f7fff2;
  font-family: var(--ct-font-latin);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: left;
}

.articles-featured__slogan span,
.articles-cta-card__slogan span,
.article-detail-hero__slogan span {
  width: 3px;
  border-radius: 999px;
  background: var(--ct-primary);
}

.articles-featured--empty {
  background:
    radial-gradient(circle at 80% 30%, rgb(var(--ct-rgb-primary) / 0.17), transparent 26%),
    var(--articles-card);
}

.articles-category-strip {
  position: relative;
  z-index: 5;
  padding: 2px 0 18px;
}

.articles-category-strip__scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 7px 0 4px;
  scrollbar-width: none;
}

.articles-category-strip__scroll::-webkit-scrollbar {
  display: none;
}

.articles-category-chip {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--articles-border);
  border-radius: 9px;
  color: var(--ct-ink-soft);
  background: var(--articles-card);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.articles-category-chip:hover {
  transform: translateY(-1px);
  border-color: var(--ct-primary-border);
  color: var(--ct-primary-strong);
}

.articles-category-chip.is-active {
  color: var(--ct-primary-ink);
  border-color: var(--ct-primary);
  background: var(--ct-primary);
  box-shadow: var(--ct-shadow-primary);
}

.articles-category-chip i {
  font-size: 0.9rem;
}

.articles-directory {
  scroll-margin-top: 90px;
  padding: 4px 0 34px;
}

.articles-directory.is-loading {
  cursor: progress;
}

.articles-directory.is-loading .articles-directory__layout {
  opacity: 0.52;
  pointer-events: none;
}

.articles-directory__layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  transition: opacity 0.18s ease;
}

.articles-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.articles-search {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 5px;
  border: 1px solid var(--articles-border);
  border-radius: 10px;
  background: var(--articles-card);
  box-shadow: var(--ct-shadow-xs);
}

.articles-search input {
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: var(--articles-text);
  font-size: 0.72rem;
}

.articles-search input:focus {
  outline: 0;
  box-shadow: none;
}

.articles-search button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ct-ink-soft);
  background: transparent;
  cursor: pointer;
}

.articles-search button:hover {
  color: var(--ct-primary-strong);
  background: var(--ct-primary-soft);
}

.articles-sidebar-card {
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--articles-border);
  border-radius: 13px;
  background: var(--articles-card);
  box-shadow: var(--ct-shadow-xs);
}

.articles-sidebar-card h2 {
  margin: 0 0 13px;
  color: var(--articles-text);
  font-size: 0.95rem;
}

.articles-sidebar-categories nav {
  display: grid;
  gap: 3px;
}

.articles-sidebar-categories nav > a {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ct-ink-soft);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.articles-sidebar-categories nav > a:hover,
.articles-sidebar-categories nav > a.is-active {
  color: var(--ct-primary-strong);
  background: var(--ct-primary-soft);
}

.articles-sidebar-category__name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.articles-sidebar-category__name i {
  width: 18px;
  color: var(--ct-ink-soft);
  text-align: center;
}

.articles-sidebar-categories nav > a.is-active .articles-sidebar-category__name i {
  color: var(--ct-primary-strong);
}

.articles-sidebar-categories b {
  min-width: 29px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 7px;
  color: var(--articles-muted);
  background: var(--articles-soft);
  font-size: 0.64rem;
}

.articles-popular__list {
  display: grid;
  gap: 10px;
}

.articles-popular__item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.articles-popular__item img {
  width: 78px;
  height: 60px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  background: var(--articles-soft);
}

.articles-popular__item > span {
  min-width: 0;
}

.articles-popular__item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ct-ink-soft);
  font-size: 0.69rem;
  line-height: 1.8;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.articles-popular__item:hover strong {
  color: var(--ct-primary-strong);
}

.articles-popular__item small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--articles-muted);
  font-size: 0.58rem;
}

.articles-popular__item small i {
  font-style: normal;
}

.articles-content {
  min-width: 0;
}

.articles-content__head {
  min-height: 49px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
}

.articles-content__head h2 {
  margin: 0;
  color: var(--articles-text);
  font-size: 1.2rem;
}

.articles-content__head p {
  margin: 4px 0 0;
  color: var(--articles-muted);
  font-size: 0.68rem;
}

.articles-clear-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  color: var(--articles-muted);
  text-decoration: none;
  font-size: 0.67rem;
  font-weight: 700;
}

.articles-clear-filter:hover {
  color: var(--ct-primary-strong);
}

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

.article-list-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--articles-border);
  border-radius: 12px;
  background: var(--articles-card);
  box-shadow: var(--ct-shadow-xs);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.article-list-card:hover {
  transform: translateY(-3px);
  border-color: var(--ct-primary-border);
  box-shadow: var(--articles-shadow);
}

.article-list-card__media {
  position: relative;
  height: 144px;
  display: block;
  overflow: hidden;
  background: var(--articles-soft);
  text-decoration: none;
}

.article-list-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-list-card:hover .article-list-card__media img {
  transform: scale(1.035);
}

.article-list-card__media > span {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.65);
  border-radius: 999px;
  color: #245d0d;
  background: rgb(239 255 231 / 0.94);
  box-shadow: 0 5px 15px rgb(0 0 0 / 0.08);
  font-size: 0.6rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-list-card__body {
  min-height: 187px;
  display: flex;
  flex-direction: column;
  padding: 13px 14px 12px;
}

.article-list-card__body h3 {
  margin: 0;
  color: var(--articles-text);
  font-size: 0.9rem;
  line-height: 1.65;
}

.article-list-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.article-list-card__body h3 a:hover {
  color: var(--ct-primary-strong);
}

.article-list-card__body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 0;
  color: var(--articles-muted);
  font-size: 0.69rem;
  line-height: 1.85;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-list-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--articles-muted);
  font-size: 0.6rem;
}

.article-list-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-list-card__meta i {
  color: var(--ct-ink-soft);
  font-size: 0.7rem;
}

.articles-empty-state {
  grid-column: 1 / -1;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px dashed var(--articles-border);
  border-radius: 14px;
  color: var(--articles-muted);
  background: var(--articles-card);
  text-align: center;
}

.articles-empty-state > i {
  margin-bottom: 12px;
  color: var(--ct-primary-strong);
  font-size: 2rem;
}

.articles-empty-state h3 {
  margin: 0;
  color: var(--articles-text);
}

.articles-empty-state p {
  margin: 7px 0 14px;
  font-size: 0.78rem;
}

.articles-empty-state a {
  color: var(--ct-primary-strong);
  font-size: 0.76rem;
  font-weight: 900;
}

.articles-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}

.articles-pagination a,
.articles-pagination span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--articles-border);
  border-radius: 50%;
  color: var(--ct-ink-soft);
  background: var(--articles-card);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 900;
}

.articles-pagination a:hover {
  border-color: var(--ct-primary-border);
  color: var(--ct-primary-strong);
}

.articles-pagination .is-current {
  color: var(--ct-primary-ink);
  border-color: var(--ct-primary);
  background: var(--ct-primary);
}

.articles-cta-section {
  padding: 14px 0 0;
}

.articles-cta-card {
  position: relative;
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 22px 34px;
  border-radius: 13px;
  color: #f8fafc;
  background:
    linear-gradient(90deg, rgb(4 10 16 / 0.94), rgb(7 15 22 / 0.83)),
    url("../img/home/course-diagnostics.webp") center 46% / cover no-repeat;
  box-shadow: var(--articles-shadow);
}

.articles-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgb(var(--ct-rgb-primary) / 0.1), transparent 36%);
  pointer-events: none;
}

.articles-cta-card__content,
.articles-cta-card > .articles-primary-button,
.articles-cta-card__slogan {
  position: relative;
  z-index: 1;
}

.articles-cta-card__content {
  flex: 1 1 auto;
}

.articles-cta-card__content > span {
  color: var(--ct-primary);
  font-size: 0.66rem;
  font-weight: 900;
}

.articles-cta-card h2 {
  margin: 4px 0 3px;
  font-size: 1.35rem;
}

.articles-cta-card p {
  max-width: 650px;
  margin: 0;
  color: rgb(255 255 255 / 0.74);
  font-size: 0.72rem;
  line-height: 1.8;
}

.articles-cta-card > .articles-primary-button {
  flex: 0 0 auto;
}

.articles-cta-card__slogan {
  display: flex;
  align-items: stretch;
  gap: 11px;
  flex: 0 0 auto;
  direction: ltr;
  font-family: var(--ct-font-latin);
  font-size: 0.66rem;
  line-height: 1.45;
  text-align: left;
}

.articles-app-section {
  padding: 12px 0 6px;
}

.articles-app-card {
  min-height: 106px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  overflow: hidden;
  padding: 16px 24px;
  border: 1px solid var(--articles-border);
  border-radius: 13px;
  background: var(--articles-card);
}

.articles-app-card__visual {
  position: relative;
  height: 78px;
  display: grid;
  place-items: center;
}

.articles-app-card__phone {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 74px;
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  border: 4px solid var(--articles-text);
  border-radius: 12px;
  color: var(--ct-primary-strong);
  background: var(--articles-soft);
  box-shadow: 16px 5px 0 -7px var(--ct-primary-soft);
  font-size: 1.45rem;
}

.articles-app-card__visual > span {
  position: absolute;
  width: 115px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(var(--ct-rgb-primary) / 0.22), transparent 72%);
}

.articles-app-card__content h2 {
  margin: 0 0 5px;
  color: var(--articles-text);
  font-size: 1.05rem;
}

.articles-app-card__content p {
  max-width: 610px;
  margin: 0;
  color: var(--articles-muted);
  font-size: 0.7rem;
  line-height: 1.85;
}

.articles-app-card__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  direction: ltr;
}

.articles-app-card__actions a {
  min-width: 126px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--articles-border);
  border-radius: 9px;
  color: var(--articles-text);
  background: var(--articles-soft);
  text-decoration: none;
  font-family: var(--ct-font-latin);
  font-size: 0.7rem;
  font-weight: 800;
}

.articles-app-card__actions a:hover {
  border-color: var(--ct-primary-border);
  background: var(--ct-primary-soft);
}

.articles-app-card__actions > a > i {
  font-size: 1.35rem;
}

.articles-app-card__actions span {
  display: grid;
  gap: 1px;
  direction: ltr;
  text-align: left;
}

.articles-app-card__actions small {
  color: var(--articles-muted);
  font-size: 0.5rem;
  font-weight: 500;
}

/* Article detail */
.article-detail-hero {
  padding: 24px 0 40px;
  border-bottom: 1px solid var(--articles-border);
  background:
    radial-gradient(circle at 20% 20%, rgb(var(--ct-rgb-primary) / 0.1), transparent 26%),
    var(--articles-soft);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--articles-muted);
  font-size: 0.68rem;
}

.article-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: var(--ct-primary-strong);
}

.article-breadcrumb i {
  font-size: 0.52rem;
}

.article-detail-hero-card {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid var(--articles-border);
  border-radius: 24px;
  background: var(--articles-card);
  box-shadow: var(--articles-shadow);
}

.article-detail-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-detail-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      270deg,
      rgb(var(--ct-rgb-surface) / 0.98) 0%,
      rgb(var(--ct-rgb-surface) / 0.95) 30%,
      rgb(var(--ct-rgb-surface) / 0.82) 48%,
      rgb(var(--ct-rgb-surface) / 0.46) 63%,
      rgb(var(--ct-rgb-surface) / 0.12) 76%,
      transparent 88%
    );
}

html[data-theme="dark"] .article-detail-hero__overlay {
  background:
    linear-gradient(
      270deg,
      rgb(15 23 34 / 0.98) 0%,
      rgb(15 23 34 / 0.95) 30%,
      rgb(15 23 34 / 0.84) 48%,
      rgb(15 23 34 / 0.48) 63%,
      rgb(15 23 34 / 0.16) 76%,
      transparent 88%
    );
}

.article-detail-hero__content {
  position: relative;
  z-index: 2;
  width: min(48%, 640px);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  padding: 42px 46px;
}

.article-detail-category {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ct-primary-strong);
  background: rgb(var(--ct-rgb-surface) / 0.68);
  border: 1px solid var(--ct-primary-border);
  backdrop-filter: blur(12px);
  font-size: 0.7rem;
  font-weight: 900;
}

.article-detail-hero__content h1 {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--articles-text);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.45;
}

.article-detail-hero__content > p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--articles-muted);
  font-size: 0.9rem;
  line-height: 2;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 20px;
  color: var(--articles-muted);
  font-size: 0.72rem;
}

.article-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-detail-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.article-detail-hero__slogan {
  position: absolute;
  z-index: 2;
  left: 34px;
  bottom: 32px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  direction: ltr;
  color: #f7fff2;
  font-family: var(--ct-font-latin);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: left;
}

.article-detail-body-section {
  padding: 38px 0 16px;
}

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: start;
}

.article-detail-content {
  padding: 32px;
  border: 1px solid var(--articles-border);
  border-radius: 16px;
  color: var(--ct-ink-soft);
  background: var(--articles-card);
  box-shadow: var(--ct-shadow-xs);
  font-size: 0.9rem;
  line-height: 2.25;
}

.article-detail-content p {
  margin: 0 0 20px;
}

.article-detail-content p:last-child {
  margin-bottom: 0;
}

.article-detail-aside {
  position: sticky;
  top: 92px;
}

.article-detail-aside__card {
  padding: 22px;
  border: 1px solid var(--articles-border);
  border-radius: 15px;
  background: var(--articles-card);
  box-shadow: var(--ct-shadow-xs);
}

.article-detail-aside__card > i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ct-primary-strong);
  background: var(--ct-primary-soft);
  font-size: 1.1rem;
}

.article-detail-aside__card h2 {
  margin: 14px 0 7px;
  color: var(--articles-text);
  font-size: 1rem;
}

.article-detail-aside__card p {
  margin: 0;
  color: var(--articles-muted);
  font-size: 0.72rem;
  line-height: 1.9;
}

.article-detail-aside__card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--ct-primary-strong);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 900;
}

.article-related-section {
  padding: 24px 0 8px;
}

.article-related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.article-related-head span {
  color: var(--ct-primary-strong);
  font-size: 0.68rem;
  font-weight: 900;
}

.article-related-head h2 {
  margin: 4px 0 0;
  color: var(--articles-text);
  font-size: 1.25rem;
}

.article-related-head > a {
  color: var(--ct-primary-strong);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 900;
}

.article-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1040px) {
  .articles-featured__content {
    width: 56%;
  }

  .articles-directory__layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .articles-cta-card__slogan {
    display: none;
  }

  .articles-app-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .articles-app-card__actions {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .article-detail-hero__grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 820px) {
  .articles-hero {
    padding-top: 16px;
  }

  .articles-featured {
    min-height: 430px;
  }

  .articles-featured__image {
    object-position: 64% center;
  }

  .articles-featured__overlay,
  html[data-theme="dark"] .articles-featured__overlay {
    background:
      linear-gradient(
        to top,
        rgb(var(--ct-rgb-surface) / 0.98) 0%,
        rgb(var(--ct-rgb-surface) / 0.95) 47%,
        rgb(var(--ct-rgb-surface) / 0.25) 78%,
        transparent 100%
      );
  }

  html[data-theme="dark"] .articles-featured__overlay {
    background:
      linear-gradient(
        to top,
        rgb(15 23 34 / 0.99) 0%,
        rgb(15 23 34 / 0.95) 47%,
        rgb(15 23 34 / 0.27) 78%,
        transparent 100%
      );
  }

  .articles-featured__content {
    width: 100%;
    min-height: 430px;
    justify-content: flex-end;
    padding: 30px;
  }

  .articles-featured__slogan {
    top: 24px;
    right: 24px;
    bottom: auto;
  }

  .articles-directory__layout {
    grid-template-columns: 1fr;
  }

  .articles-sidebar {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .articles-search {
    grid-column: 1 / -1;
  }

  .articles-popular {
    min-width: 0;
  }

  .articles-cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .articles-app-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .article-detail-hero__grid,
  .article-detail-layout {
    grid-template-columns: 1fr;
  }

  .article-detail-hero__media {
    grid-row: 1;
    height: 280px;
  }

  .article-detail-aside {
    position: static;
  }

  .article-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .articles-featured {
    min-height: 470px;
    border-radius: 14px;
  }

  .articles-featured__content {
    min-height: 470px;
    padding: 24px 20px;
  }

  .articles-featured h1 {
    font-size: 1.6rem;
  }

  .articles-featured__content > p {
    font-size: 0.76rem;
  }

  .articles-featured__meta {
    gap: 8px 13px;
    font-size: 0.65rem;
  }

  .articles-featured__slogan {
    display: none;
  }

  .articles-category-strip {
    padding-bottom: 10px;
  }

  .articles-directory {
    padding-top: 8px;
  }

  .articles-sidebar {
    grid-template-columns: 1fr;
  }

  .articles-sidebar-categories,
  .articles-popular {
    display: none;
  }

  .articles-content__head {
    align-items: center;
  }

  .articles-content__head h2 {
    font-size: 1.05rem;
  }

  .articles-content__head p {
    display: none;
  }

  .articles-grid,
  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .article-list-card__media {
    height: 190px;
  }

  .article-list-card__body {
    min-height: 170px;
  }

  .articles-cta-card {
    min-height: 170px;
    padding: 24px 22px;
  }

  .articles-cta-card h2 {
    font-size: 1.15rem;
  }

  .articles-app-card {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .articles-app-card__visual {
    display: none;
  }

  .articles-app-card__content p {
    margin-inline: auto;
  }

  .articles-app-card__actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .articles-app-card__actions a {
    min-width: 122px;
  }

  .article-breadcrumb {
    overflow: hidden;
    white-space: nowrap;
  }

  .article-breadcrumb span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .article-detail-hero__copy h1 {
    font-size: 1.8rem;
  }

  .article-detail-hero__media {
    height: 220px;
  }

  .article-detail-content {
    padding: 22px 18px;
    font-size: 0.84rem;
  }
}


@media (max-width: 1199px) {
  .articles-featured,
  .article-detail-hero-card {
    min-height: 390px;
  }

  .articles-featured__content,
  .article-detail-hero__content {
    width: min(56%, 620px);
    min-height: 390px;
    padding: 36px 34px;
  }
}

@media (max-width: 991px) {
  .articles-featured,
  .article-detail-hero-card {
    min-height: 360px;
    border-radius: 20px;
  }

  .articles-featured__overlay,
  .article-detail-hero__overlay {
    background:
      linear-gradient(
        0deg,
        rgb(var(--ct-rgb-surface) / 0.96) 0%,
        rgb(var(--ct-rgb-surface) / 0.9) 36%,
        rgb(var(--ct-rgb-surface) / 0.52) 62%,
        transparent 88%
      );
  }

  html[data-theme="dark"] .articles-featured__overlay,
  html[data-theme="dark"] .article-detail-hero__overlay {
    background:
      linear-gradient(
        0deg,
        rgb(15 23 34 / 0.96) 0%,
        rgb(15 23 34 / 0.91) 36%,
        rgb(15 23 34 / 0.56) 62%,
        transparent 88%
      );
  }

  .articles-featured__content,
  .article-detail-hero__content {
    width: 100%;
    min-height: 360px;
    justify-content: flex-end;
    padding: 28px 24px;
  }

  .articles-featured__content > p,
  .article-detail-hero__content > p {
    max-width: none;
  }

  .articles-featured__slogan,
  .article-detail-hero__slogan {
    display: none;
  }
}

@media (max-width: 767px) {
  .articles-hero {
    padding-top: 18px;
  }

  .articles-featured,
  .article-detail-hero-card {
    min-height: 320px;
    border-radius: 18px;
  }

  .articles-featured__content,
  .article-detail-hero__content {
    min-height: 320px;
    padding: 22px 18px;
  }

  .articles-featured h1,
  .article-detail-hero__content h1 {
    font-size: 1.65rem;
    line-height: 1.55;
  }

  .articles-featured__meta,
  .article-detail-meta {
    gap: 9px 14px;
    font-size: 0.68rem;
  }

  .articles-featured__actions,
  .article-detail-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .articles-primary-button,
  .articles-secondary-button {
    width: 100%;
  }

  .articles-featured__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .articles-featured__stats > div {
    min-width: 0;
  }
}


/* Compact full-width hero: matches the visual proportions of the course hero. */
.articles-hero > .container,
.article-detail-hero > .container {
  width: 100%;
  max-width: none;
  padding-inline: 24px;
}

.articles-featured {
  width: 100%;
  height: clamp(300px, 24vw, 340px);
  min-height: 0;
  border-radius: 20px;
}

.articles-featured__content {
  width: min(42%, 520px);
  min-height: 0;
  height: 100%;
  padding: 24px 32px;
}

.articles-featured__eyebrow {
  margin-bottom: 7px;
  font-size: 0.72rem;
}

.articles-featured__badge {
  margin-bottom: 9px;
  padding: 6px 10px;
}

.articles-featured h1 {
  max-width: 500px;
  font-size: clamp(1.75rem, 2.55vw, 2.65rem);
  line-height: 1.35;
}

.articles-featured__content > p {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.8;
}

.articles-featured__meta {
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 0.69rem;
}

.articles-featured__actions {
  gap: 18px;
  margin-top: 14px;
}

.articles-primary-button {
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 9px;
}

.articles-featured__more {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--articles-text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
}

.articles-featured__more:hover {
  color: var(--ct-primary-strong);
}

.articles-featured__slogan {
  left: 30px;
  bottom: 28px;
}

.article-detail-hero-card {
  width: 100%;
  height: clamp(300px, 24vw, 340px);
  min-height: 0;
  border-radius: 20px;
}

.article-detail-hero__content {
  width: min(44%, 570px);
  min-height: 0;
  height: 100%;
  padding: 26px 34px;
}

.article-detail-hero__content h1 {
  margin-top: 11px;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.4;
}

.article-detail-hero__content > p {
  margin-top: 9px;
  font-size: 0.82rem;
  line-height: 1.85;
}

.article-detail-meta {
  margin-top: 13px;
}

.article-detail-hero__actions {
  margin-top: 15px;
}

.article-detail-hero__slogan {
  left: 30px;
  bottom: 28px;
}

@media (max-width: 1199px) {
  .articles-featured,
  .article-detail-hero-card {
    height: 320px;
    min-height: 0;
  }

  .articles-featured__content,
  .article-detail-hero__content {
    min-height: 0;
    height: 100%;
    padding: 24px 28px;
  }
}

@media (max-width: 991px) {
  .articles-hero > .container,
  .article-detail-hero > .container {
    padding-inline: 16px;
  }

  .articles-featured,
  .article-detail-hero-card {
    height: 330px;
    min-height: 0;
  }

  .articles-featured__content,
  .article-detail-hero__content {
    width: 100%;
    min-height: 0;
    height: 100%;
    padding: 22px;
  }
}

@media (max-width: 767px) {
  .articles-hero > .container,
  .article-detail-hero > .container {
    padding-inline: 12px;
  }

  .articles-featured,
  .article-detail-hero-card {
    height: 300px;
    min-height: 0;
    border-radius: 16px;
  }

  .articles-featured__content,
  .article-detail-hero__content {
    min-height: 0;
    height: 100%;
    padding: 18px;
  }

  .articles-featured__eyebrow {
    display: none;
  }

  .articles-featured h1,
  .article-detail-hero__content h1 {
    font-size: 1.45rem;
  }

  .articles-featured__content > p,
  .article-detail-hero__content > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}


/* Articles index: compact full-width page hero + separate featured article card. */
.articles-page-hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-bottom: 1px solid var(--articles-border);
  background: #111b27;
}

.articles-page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 52%;
  opacity: 0.7;
}

.articles-page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgb(9 17 27 / 0.18) 0%,
      rgb(9 17 27 / 0.34) 28%,
      rgb(9 17 27 / 0.76) 62%,
      rgb(9 17 27 / 0.94) 100%
    );
}

.articles-page-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 96px;
  color: #fff;
}

.articles-page-hero__content > div:first-child {
  max-width: 680px;
}

.articles-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ct-primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.articles-page-hero__eyebrow i {
  font-size: 0.82rem;
}

.articles-page-hero h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.articles-page-hero p {
  max-width: 660px;
  margin: 8px 0 0;
  color: rgb(255 255 255 / 0.76);
  font-size: 0.82rem;
  line-height: 1.9;
}

.articles-page-hero__stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 112px;
}

.articles-page-hero__stats > div {
  min-width: 112px;
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 14px;
  background: rgb(10 18 28 / 0.38);
  backdrop-filter: blur(10px);
}

.articles-page-hero__stats strong,
.articles-page-hero__stats span {
  display: block;
}

.articles-page-hero__stats strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.articles-page-hero__stats span {
  margin-top: 3px;
  color: rgb(255 255 255 / 0.65);
  font-size: 0.68rem;
}

.articles-page-hero__slogan {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 24px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  direction: ltr;
  color: rgb(255 255 255 / 0.9);
  font-family: var(--ct-font-latin);
  font-size: 0.63rem;
  line-height: 1.42;
  text-align: left;
}

.articles-page-hero__slogan span {
  width: 3px;
  border-radius: 999px;
  background: var(--ct-primary);
}

.articles-featured-section {
  position: relative;
  z-index: 6;
  margin-top: -54px;
  padding-bottom: 14px;
}

.articles-featured-card {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  overflow: hidden;
  border: 1px solid var(--articles-border);
  border-radius: 20px;
  background: var(--articles-card);
  box-shadow: 0 20px 54px rgb(var(--ct-rgb-ink) / 0.1);
}

html[data-theme="dark"] .articles-featured-card {
  box-shadow: 0 20px 54px rgb(0 0 0 / 0.32);
}

.articles-featured-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 24px 30px;
}

.articles-featured-card__badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--ct-primary-border);
  border-radius: 999px;
  color: var(--ct-primary-strong);
  background: var(--ct-primary-soft);
  font-size: 0.7rem;
  font-weight: 900;
}

.articles-featured-card h2 {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--articles-text);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.55;
}

.articles-featured-card__content > p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--articles-muted);
  font-size: 0.78rem;
  line-height: 1.9;
}

.articles-featured-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--articles-muted);
  font-size: 0.68rem;
}

.articles-featured-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.articles-featured-card__button {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 15px;
  padding: 8px 18px;
  border-radius: 9px;
  color: var(--ct-primary-ink);
  background: var(--ct-primary);
  box-shadow: var(--ct-shadow-primary);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
}

.articles-featured-card__button:hover {
  transform: translateY(-1px);
  background: var(--ct-primary-hover);
}

.articles-featured-card__media {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  background: var(--articles-soft);
}

.articles-featured-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgb(0 0 0 / 0.14) 100%);
  pointer-events: none;
}

.articles-featured-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.articles-featured-card__media:hover img {
  transform: scale(1.025);
}

.articles-featured-card__media > span {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 0.42);
  border-radius: 999px;
  color: #fff;
  background: rgb(10 18 28 / 0.5);
  backdrop-filter: blur(8px);
  font-size: 0.65rem;
  font-weight: 800;
}

.articles-featured-section + .articles-category-strip {
  padding-top: 2px;
}

@media (max-width: 1199px) {
  .articles-page-hero__stats {
    margin-left: 82px;
  }

  .articles-featured-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }
}

@media (max-width: 991px) {
  .articles-page-hero {
    height: 470px;
  }

  .articles-page-hero__content {
    gap: 20px;
    padding-top: 46px;
    padding-bottom: 84px;
  }

  .articles-page-hero__stats {
    margin-left: 0;
  }

  .articles-page-hero__slogan {
    display: none;
  }

  .articles-featured-section {
    margin-top: -44px;
  }

  .articles-featured-card {
    min-height: 220px;
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
  }

  .articles-featured-card__content {
    padding: 20px 22px;
  }

  .articles-featured-card__media {
    min-height: 220px;
  }
}

@media (max-width: 767px) {
  .articles-page-hero {
    height: 455px;
  }

  .articles-page-hero__content {
    align-items: flex-end;
    padding-top: 34px;
    padding-bottom: 76px;
  }

  .articles-page-hero__content > div:first-child {
    max-width: none;
  }

  .articles-page-hero__eyebrow {
    font-size: 0.68rem;
  }

  .articles-page-hero h1 {
    margin-top: 5px;
    font-size: 1.55rem;
  }

  .articles-page-hero p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    max-width: 520px;
    font-size: 0.78rem;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .articles-page-hero__stats {
    display: none;
  }

  .articles-featured-section {
    margin-top: -34px;
    padding-bottom: 10px;
  }

  .articles-featured-card {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
    border-radius: 16px;
  }

  .articles-featured-card__media {
    min-height: 0;
    height: 160px;
  }

  .articles-featured-card__content {
    padding: 18px;
  }

  .articles-featured-card__content > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .articles-featured-card__meta {
    gap: 7px 12px;
  }

  .articles-featured-card__button {
    width: 100%;
  }
}

/* Theme-aware treatment for the full-width articles hero. */
.articles-page-hero {
  background: #eef3f7;
}

.articles-page-hero__image {
  opacity: 0.96;
  filter: saturate(0.96) contrast(0.98) brightness(1.03);
}

.articles-page-hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgb(248 250 252 / 0.04) 0%,
      rgb(248 250 252 / 0.16) 28%,
      rgb(248 250 252 / 0.72) 58%,
      rgb(248 250 252 / 0.95) 82%,
      rgb(248 250 252 / 0.99) 100%
    );
}

.articles-page-hero__content {
  color: var(--articles-text);
}

.articles-page-hero h1 {
  color: var(--articles-text);
}

.articles-page-hero p {
  color: color-mix(in srgb, var(--articles-text) 68%, transparent);
}

.articles-page-hero__stats > div {
  border-color: rgb(15 23 42 / 0.1);
  background: rgb(255 255 255 / 0.64);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    0 12px 30px rgb(15 23 42 / 0.07);
  backdrop-filter: blur(10px);
}

.articles-page-hero__stats strong {
  color: var(--articles-text);
}

.articles-page-hero__stats span {
  color: color-mix(in srgb, var(--articles-text) 62%, transparent);
}

.articles-page-hero__slogan {
  padding: 8px 10px;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 10px;
  color: #ffffff;
  background: rgb(9 17 27 / 0.28);
  box-shadow: 0 8px 24px rgb(9 17 27 / 0.1);
  backdrop-filter: blur(5px);
}

html[data-theme="dark"] .articles-page-hero {
  background: #0b1119;
}

html[data-theme="dark"] .articles-page-hero__image {
  opacity: 0.68;
  filter: saturate(0.9) contrast(1.04) brightness(0.76);
}

html[data-theme="dark"] .articles-page-hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgb(7 13 21 / 0.1) 0%,
      rgb(7 13 21 / 0.28) 28%,
      rgb(7 13 21 / 0.72) 60%,
      rgb(7 13 21 / 0.93) 84%,
      rgb(7 13 21 / 0.98) 100%
    );
}

html[data-theme="dark"] .articles-page-hero__content,
html[data-theme="dark"] .articles-page-hero h1 {
  color: #f8fafc;
}

html[data-theme="dark"] .articles-page-hero p {
  color: rgb(248 250 252 / 0.74);
}

html[data-theme="dark"] .articles-page-hero__stats > div {
  border-color: rgb(255 255 255 / 0.14);
  background: rgb(10 18 28 / 0.46);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.05),
    0 14px 32px rgb(0 0 0 / 0.18);
}

html[data-theme="dark"] .articles-page-hero__stats strong {
  color: #ffffff;
}

html[data-theme="dark"] .articles-page-hero__stats span {
  color: rgb(255 255 255 / 0.64);
}

html[data-theme="dark"] .articles-page-hero__slogan {
  border-color: rgb(255 255 255 / 0.12);
  background: rgb(5 10 17 / 0.44);
}

/* ========================================================================== 
   Article detail V2
   ========================================================================== */

.article-detail-page {
  background: var(--ct-bg);
}

.article-reading-progress {
  position: fixed;
  z-index: 1200;
  top: var(--ct-header-height, 72px);
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}

.article-reading-progress > span {
  width: 100%;
  height: 100%;
  display: block;
  transform: scaleX(0);
  transform-origin: right center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ct-primary), var(--ct-primary-strong));
  box-shadow: 0 0 16px rgb(var(--ct-rgb-primary) / 0.4);
  transition: transform 0.08s linear;
}

.article-detail-v2-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-bottom: 1px solid var(--articles-border);
  background: #edf2f6;
}

.article-detail-v2-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(0.98) brightness(1.04);
}

.article-detail-v2-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgb(248 250 252 / 0.06) 0%,
      rgb(248 250 252 / 0.22) 26%,
      rgb(248 250 252 / 0.82) 54%,
      rgb(248 250 252 / 0.97) 77%,
      rgb(248 250 252 / 1) 100%
    );
}

.article-detail-v2-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  padding-bottom: 62px;
}

.article-detail-v2-breadcrumb {
  margin-bottom: 0;
  color: #475569;
}

.article-detail-v2-breadcrumb a:hover {
  color: var(--ct-primary-strong);
}

.article-detail-v2-hero__copy {
  width: min(58%, 760px);
  margin-top: auto;
  margin-bottom: auto;
}

.article-detail-v2-category {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgb(var(--ct-rgb-primary) / 0.24);
  border-radius: 999px;
  color: #4d7c0f;
  background: rgb(255 255 255 / 0.72);
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.05);
  backdrop-filter: blur(10px);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 900;
}

.article-detail-v2-category i {
  font-size: 0.78rem;
}

.article-detail-v2-hero h1 {
  max-width: 780px;
  margin: 14px 0 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.48;
  letter-spacing: -0.04em;
}

.article-detail-v2-hero__lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 2;
}

.article-detail-v2-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 20px;
  color: #475569;
  font-size: 0.72rem;
}

.article-detail-v2-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-detail-v2-meta i {
  color: #64748b;
}

.article-detail-v2-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.article-detail-v2-back {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid rgb(15 23 42 / 0.12);
  border-radius: 12px;
  color: #0f172a;
  background: rgb(255 255 255 / 0.62);
  backdrop-filter: blur(10px);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.article-detail-v2-back:hover {
  transform: translateY(-1px);
  border-color: var(--ct-primary-border);
  color: var(--ct-primary-strong);
}

.article-detail-v2-hero__slogan {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 26px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgb(255 255 255 / 0.52);
  border-radius: 10px;
  direction: ltr;
  color: #fff;
  background: rgb(9 17 27 / 0.4);
  box-shadow: 0 10px 26px rgb(9 17 27 / 0.14);
  backdrop-filter: blur(6px);
  font-family: var(--ct-font-latin);
  font-size: 0.62rem;
  line-height: 1.42;
  text-align: left;
}

.article-detail-v2-hero__slogan span {
  width: 3px;
  border-radius: 999px;
  background: var(--ct-primary);
}

html[data-theme="dark"] .article-detail-v2-hero {
  background: #0b1119;
}

html[data-theme="dark"] .article-detail-v2-hero__image {
  filter: saturate(0.92) contrast(1.04) brightness(0.72);
}

html[data-theme="dark"] .article-detail-v2-hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgb(7 13 21 / 0.1) 0%,
      rgb(7 13 21 / 0.28) 28%,
      rgb(7 13 21 / 0.74) 58%,
      rgb(7 13 21 / 0.94) 82%,
      rgb(7 13 21 / 0.99) 100%
    );
}

html[data-theme="dark"] .article-detail-v2-breadcrumb {
  color: rgb(248 250 252 / 0.64);
}

html[data-theme="dark"] .article-detail-v2-category {
  color: var(--ct-primary);
  border-color: rgb(var(--ct-rgb-primary) / 0.24);
  background: rgb(8 15 23 / 0.58);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.16);
}

html[data-theme="dark"] .article-detail-v2-hero h1 {
  color: #f8fafc;
}

html[data-theme="dark"] .article-detail-v2-hero__lead {
  color: rgb(248 250 252 / 0.74);
}

html[data-theme="dark"] .article-detail-v2-meta {
  color: rgb(248 250 252 / 0.66);
}

html[data-theme="dark"] .article-detail-v2-meta i {
  color: rgb(248 250 252 / 0.54);
}

html[data-theme="dark"] .article-detail-v2-back {
  color: #f8fafc;
  border-color: rgb(255 255 255 / 0.12);
  background: rgb(8 15 23 / 0.52);
}

.article-detail-v2-summary-wrap {
  position: relative;
  z-index: 5;
  margin-top: -38px;
}

.article-detail-v2-summary {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(270px, 1.05fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 17px 20px;
  border: 1px solid var(--articles-border);
  border-radius: 20px;
  background: var(--articles-card);
  box-shadow: 0 18px 48px rgb(var(--ct-rgb-ink) / 0.09);
}

html[data-theme="dark"] .article-detail-v2-summary {
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.24);
}

.article-detail-v2-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.article-detail-v2-author__avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ct-primary-border);
  border-radius: 15px;
  color: var(--ct-primary-strong);
  background:
    radial-gradient(circle at 35% 30%, rgb(var(--ct-rgb-primary) / 0.18), transparent 55%),
    var(--ct-primary-soft);
  font-size: 1.1rem;
}

.article-detail-v2-author > div:last-child {
  min-width: 0;
}

.article-detail-v2-author strong,
.article-detail-v2-author span {
  display: block;
}

.article-detail-v2-author strong {
  color: var(--articles-text);
  font-size: 0.84rem;
  font-weight: 900;
}

.article-detail-v2-author span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--articles-muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-detail-v2-summary__facts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-detail-v2-summary__facts span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--articles-border);
  border-radius: 10px;
  color: var(--articles-muted);
  background: var(--articles-soft);
  font-size: 0.66rem;
  font-weight: 700;
}

.article-detail-v2-summary__facts i {
  color: var(--ct-primary-strong);
}

.article-detail-v2-share {
  display: flex;
  align-items: center;
  gap: 7px;
  direction: ltr;
}

.article-detail-v2-share__button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--articles-border);
  border-radius: 10px;
  color: var(--ct-ink-soft);
  background: var(--articles-card);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

.article-detail-v2-share__button:hover {
  transform: translateY(-2px);
  border-color: var(--ct-primary-border);
  color: var(--ct-primary-strong);
  background: var(--ct-primary-soft);
}

.article-detail-v2-body {
  scroll-margin-top: 94px;
  padding: 34px 0 24px;
}

.article-detail-v2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.article-detail-v2-content {
  min-width: 0;
  padding: 34px 38px;
  border: 1px solid var(--articles-border);
  border-radius: 20px;
  background: var(--articles-card);
  box-shadow: var(--ct-shadow-xs);
}

.article-detail-v2-intro {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgb(var(--ct-rgb-primary) / 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgb(var(--ct-rgb-primary) / 0.07), transparent 68%),
    var(--articles-soft);
}

.article-detail-v2-intro__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--ct-primary-strong);
  background: var(--ct-primary-soft);
}

.article-detail-v2-intro > div > span {
  display: block;
  color: var(--ct-primary-strong);
  font-size: 0.68rem;
  font-weight: 900;
}

.article-detail-v2-intro p {
  margin: 5px 0 0;
  color: var(--ct-ink-soft);
  font-size: 0.8rem;
  line-height: 2;
}

.article-detail-v2-content__head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--articles-border);
}

.article-detail-v2-content__head > span {
  display: block;
  color: var(--ct-primary-strong);
  font-size: 0.67rem;
  font-weight: 900;
}

.article-detail-v2-content__head h2 {
  margin: 5px 0 0;
  color: var(--articles-text);
  font-size: 1.35rem;
  line-height: 1.6;
}

.article-detail-v2-prose {
  color: var(--ct-ink-soft);
  font-size: 0.92rem;
  line-height: 2.35;
}

.article-detail-v2-prose p {
  margin: 0 0 22px;
}

.article-detail-v2-prose p:last-child {
  margin-bottom: 0;
}

.article-detail-v2-prose h2,
.article-detail-v2-prose h3,
.article-detail-v2-prose h4 {
  color: var(--articles-text);
  line-height: 1.7;
}

.article-detail-v2-prose h2 {
  margin: 38px 0 14px;
  font-size: 1.35rem;
}

.article-detail-v2-prose h3 {
  margin: 30px 0 12px;
  font-size: 1.12rem;
}

.article-detail-v2-prose ul,
.article-detail-v2-prose ol {
  margin: 18px 0;
  padding-right: 20px;
}

.article-detail-v2-prose li {
  margin-bottom: 8px;
}

.article-detail-v2-prose blockquote {
  margin: 28px 0;
  padding: 16px 18px;
  border-right: 4px solid var(--ct-primary);
  border-radius: 12px 0 0 12px;
  background: var(--articles-soft);
  color: var(--articles-text);
}

.article-detail-v2-prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 28px auto;
  border-radius: 16px;
}

.article-detail-v2-content__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--articles-border);
}

.article-detail-v2-content__category > span,
.article-detail-v2-content__share > span {
  display: block;
  margin-bottom: 8px;
  color: var(--articles-muted);
  font-size: 0.64rem;
}

.article-detail-v2-content__category a,
.article-detail-v2-content__share button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--articles-border);
  border-radius: 10px;
  color: var(--articles-text);
  background: var(--articles-soft);
  text-decoration: none;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.article-detail-v2-content__share {
  text-align: left;
}

.article-detail-v2-content__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.article-detail-v2-content__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--ct-primary-strong);
  background: var(--ct-primary-soft);
  border: 1px solid var(--ct-primary-border);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
}

.article-detail-v2-content__share button:hover,
.article-detail-v2-content__category a:hover {
  border-color: var(--ct-primary-border);
  color: var(--ct-primary-strong);
}

.article-detail-v2-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  direction: rtl;
}

.article-detail-v2-pager__item {
  min-width: 0;
  display: block;
  padding: 14px 15px;
  direction: rtl;
  text-align: right;
  border: 1px solid var(--articles-border);
  border-radius: 14px;
  color: var(--articles-text);
  background: var(--articles-soft);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.article-detail-v2-pager__item:hover {
  transform: translateY(-2px);
  border-color: var(--ct-primary-border);
  background: var(--ct-primary-soft);
}

.article-detail-v2-pager__item > span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  color: var(--ct-primary-strong);
  font-size: 0.64rem;
  font-weight: 900;
}

.article-detail-v2-pager__item strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.75;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-detail-v2-pager__item--next > span {
  justify-content: flex-start;
}

.article-detail-v2-pager__item--next {
  text-align: right;
}

.article-detail-v2-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.article-detail-v2-side-card,
.article-detail-v2-course-card {
  padding: 20px;
  border: 1px solid var(--articles-border);
  border-radius: 17px;
  background: var(--articles-card);
  box-shadow: var(--ct-shadow-xs);
}

.article-detail-v2-side-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.article-detail-v2-side-card__head > i {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--ct-primary-strong);
  background: var(--ct-primary-soft);
}

.article-detail-v2-side-card__head span,
.article-detail-v2-side-card__head h2 {
  display: block;
}

.article-detail-v2-side-card__head span {
  color: var(--ct-primary-strong);
  font-size: 0.62rem;
  font-weight: 900;
}

.article-detail-v2-side-card__head h2 {
  margin: 2px 0 0;
  color: var(--articles-text);
  font-size: 0.92rem;
}

.article-detail-v2-glance-list {
  display: grid;
  gap: 10px;
}

.article-detail-v2-glance-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--articles-border);
}

.article-detail-v2-glance-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.article-detail-v2-glance-list span {
  color: var(--articles-muted);
  font-size: 0.66rem;
}

.article-detail-v2-glance-list strong {
  color: var(--articles-text);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: left;
}

.article-detail-v2-course-card {
  position: relative;
  overflow: hidden;
  border-color: rgb(var(--ct-rgb-primary) / 0.2);
  background:
    radial-gradient(circle at 10% 0%, rgb(var(--ct-rgb-primary) / 0.14), transparent 42%),
    linear-gradient(150deg, #111b27 0%, #0b121c 100%);
  color: #fff;
}

.article-detail-v2-course-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  left: -55px;
  bottom: -65px;
  border: 1px solid rgb(var(--ct-rgb-primary) / 0.22);
  border-radius: 50%;
}

.article-detail-v2-course-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ct-primary);
  background: rgb(var(--ct-rgb-primary) / 0.12);
  font-size: 1rem;
}

.article-detail-v2-course-card > span {
  display: block;
  margin-top: 15px;
  color: var(--ct-primary);
  font-size: 0.64rem;
  font-weight: 900;
}

.article-detail-v2-course-card h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.65;
}

.article-detail-v2-course-card p {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 0.68);
  font-size: 0.7rem;
  line-height: 1.9;
}

.article-detail-v2-course-card a {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ct-primary-ink);
  background: var(--ct-primary);
  box-shadow: var(--ct-shadow-primary);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 900;
}

.article-detail-v2-popular-list {
  display: grid;
  gap: 10px;
}

.article-detail-v2-popular-list > a {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.article-detail-v2-popular-list > a:hover {
  border-color: var(--articles-border);
  background: var(--articles-soft);
}

.article-detail-v2-popular-list img {
  width: 62px;
  height: 52px;
  display: block;
  object-fit: cover;
  border-radius: 9px;
}

.article-detail-v2-popular-list strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--articles-text);
  font-size: 0.67rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-detail-v2-popular-list small {
  display: block;
  margin-top: 4px;
  color: var(--articles-muted);
  font-size: 0.58rem;
}

.article-detail-v2-related {
  padding: 30px 0 44px;
  border-top: 1px solid var(--articles-border);
  background: var(--articles-soft);
}

.article-detail-v2-related__head {
  margin-bottom: 18px;
}

.article-detail-v2-related__head > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-detail-v2-toast {
  position: fixed;
  z-index: 1400;
  right: 50%;
  bottom: 24px;
  min-width: 180px;
  padding: 10px 16px;
  transform: translate(50%, 20px);
  border: 1px solid var(--ct-primary-border);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  color: var(--articles-text);
  background: var(--articles-card);
  box-shadow: 0 18px 46px rgb(var(--ct-rgb-ink) / 0.16);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.article-detail-v2-toast.is-visible {
  transform: translate(50%, 0);
  opacity: 1;
  visibility: visible;
}

[data-article-reveal] {
  transform: translateY(22px) scale(0.985);
  opacity: 0;
  filter: blur(5px);
  transition:
    transform 0.72s cubic-bezier(0.2, 0.75, 0.25, 1) var(--article-reveal-delay, 0ms),
    opacity 0.62s ease var(--article-reveal-delay, 0ms),
    filter 0.62s ease var(--article-reveal-delay, 0ms);
}

[data-article-reveal].is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
}

@media (max-width: 1199px) {
  .article-detail-v2-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
  }

  .article-detail-v2-summary {
    grid-template-columns: minmax(250px, 1fr) auto;
  }

  .article-detail-v2-share {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--articles-border);
  }
}

@media (max-width: 991px) {
  .article-detail-v2-hero {
    min-height: 390px;
  }

  .article-detail-v2-hero__inner {
    min-height: 390px;
    padding-bottom: 54px;
  }

  .article-detail-v2-hero__copy {
    width: min(70%, 720px);
  }

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

  .article-detail-v2-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-detail-v2-side-card--glance {
    grid-column: 1 / -1;
  }

  .article-detail-v2-summary {
    grid-template-columns: 1fr auto;
  }

  .article-detail-v2-summary__facts {
    justify-content: flex-end;
  }

  .article-detail-v2-share {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .article-reading-progress {
    top: 0;
  }

  .article-detail-v2-hero {
    min-height: 420px;
  }

  .article-detail-v2-hero__image {
    object-position: center;
  }

  .article-detail-v2-hero__overlay,
  html[data-theme="dark"] .article-detail-v2-hero__overlay {
    background:
      linear-gradient(
        0deg,
        rgb(248 250 252 / 0.97) 0%,
        rgb(248 250 252 / 0.92) 42%,
        rgb(248 250 252 / 0.5) 68%,
        transparent 100%
      );
  }

  html[data-theme="dark"] .article-detail-v2-hero__overlay {
    background:
      linear-gradient(
        0deg,
        rgb(7 13 21 / 0.98) 0%,
        rgb(7 13 21 / 0.94) 42%,
        rgb(7 13 21 / 0.58) 68%,
        transparent 100%
      );
  }

  .article-detail-v2-hero__inner {
    min-height: 420px;
    justify-content: flex-end;
    padding-top: 18px;
    padding-bottom: 58px;
  }

  .article-detail-v2-breadcrumb {
    position: absolute;
    top: 18px;
    right: 16px;
    left: 16px;
    overflow: hidden;
    white-space: nowrap;
  }

  .article-detail-v2-breadcrumb a,
  .article-detail-v2-breadcrumb span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .article-detail-v2-hero__copy {
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
  }

  .article-detail-v2-hero h1 {
    margin-top: 10px;
    font-size: 1.65rem;
    line-height: 1.55;
  }

  .article-detail-v2-hero__lead {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    font-size: 0.76rem;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .article-detail-v2-meta {
    gap: 8px 12px;
    margin-top: 14px;
    font-size: 0.65rem;
  }

  .article-detail-v2-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
  }

  .article-detail-v2-hero__actions > * {
    width: 100%;
  }

  .article-detail-v2-hero__slogan {
    display: none;
  }

  .article-detail-v2-summary-wrap {
    margin-top: -28px;
  }

  .article-detail-v2-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
  }

  .article-detail-v2-author span {
    white-space: normal;
  }

  .article-detail-v2-summary__facts {
    justify-content: flex-start;
  }

  .article-detail-v2-share {
    grid-column: auto;
    justify-content: flex-start;
    padding-top: 12px;
  }

  .article-detail-v2-body {
    padding-top: 24px;
  }

  .article-detail-v2-content {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .article-detail-v2-intro {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }

  .article-detail-v2-intro__icon {
    width: 40px;
    height: 40px;
  }

  .article-detail-v2-content__head h2 {
    font-size: 1.12rem;
  }

  .article-detail-v2-prose {
    font-size: 0.84rem;
    line-height: 2.2;
  }

  .article-detail-v2-content__footer {
    grid-template-columns: 1fr;
  }

  .article-detail-v2-content__share {
    text-align: right;
  }

  .article-detail-v2-pager {
    grid-template-columns: 1fr;
  }

  .article-detail-v2-sidebar {
    grid-template-columns: 1fr;
  }

  .article-detail-v2-side-card--glance {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .article-detail-v2-hero {
    min-height: 440px;
  }

  .article-detail-v2-hero__inner {
    min-height: 440px;
  }

  .article-detail-v2-hero__actions {
    grid-template-columns: 1fr;
  }

  .article-detail-v2-summary__facts span {
    width: 100%;
    justify-content: center;
  }

  .article-detail-v2-share {
    justify-content: space-between;
  }

  .article-detail-v2-share__button {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-article-reveal] {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }

  .article-reading-progress > span {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .article-reading-progress,
  .article-detail-v2-summary-wrap,
  .article-detail-v2-sidebar,
  .article-detail-v2-related,
  .article-detail-v2-hero__actions,
  .article-detail-v2-hero__slogan,
  .article-detail-v2-toast {
    display: none !important;
  }

  .article-detail-v2-hero {
    min-height: auto;
    background: #fff;
  }

  .article-detail-v2-hero__image,
  .article-detail-v2-hero__overlay {
    display: none;
  }

  .article-detail-v2-hero__inner {
    min-height: auto;
    padding: 24px 0;
  }

  .article-detail-v2-hero__copy {
    width: 100%;
  }

  .article-detail-v2-hero h1,
  .article-detail-v2-hero__lead,
  .article-detail-v2-meta,
  .article-detail-v2-breadcrumb {
    color: #111 !important;
  }

  .article-detail-v2-layout {
    display: block;
  }

  .article-detail-v2-content {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
