.news-detail {
  --news-detail-header-offset: var(--header-h, 120px);
  position: relative;
  isolation: isolate;
  background: #ffffff;
  color: #303030;
  padding-top: calc(var(--news-detail-header-offset) + 40px);
  padding-bottom: 0;
}

.news-detail::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 480px;
  background: linear-gradient(180deg, #cacfd7 0%, #ffffff 100%);
  pointer-events: none;
}

.news-detail__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  color: #303030;
  font-size: 12px;
  line-height: 24px;
  white-space: nowrap;
  scrollbar-width: none;
}

.news-detail__breadcrumb::-webkit-scrollbar {
  display: none;
}

.news-detail__breadcrumb-home,
.news-detail__breadcrumb-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  color: #303030;
  text-decoration: none;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.news-detail__breadcrumb-home:hover,
.news-detail__breadcrumb-home:focus-visible,
.news-detail__breadcrumb-link:hover,
.news-detail__breadcrumb-link:focus-visible {
  opacity: 0.8;
}

.news-detail__breadcrumb-icon {
  width: 1rem;
  height: 1rem;
  -o-object-fit: contain;
     object-fit: contain;
}

.news-detail__breadcrumb-separator,
.news-detail__breadcrumb-current {
  flex: 0 0 auto;
  color: #303030;
}

.news-detail__header {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.news-detail__info-bar {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 20px;
  padding-block: 20px;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  color: #303030;
  font-size: 14px;
  line-height: 1.4;
}

.news-detail__category,
.news-detail__categories-tag {
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(206deg, #29307f 0%, #cc1377 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}

.news-detail__published {
  display: inline-flex;
  min-width: 0px;
  align-items: center;
  color: #303030;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.news-detail__author {
  font-weight: 700;
}

.news-detail__title {
  color: #303030;
  width: 100%;
  max-width: none;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.22;
}

.news-detail .oc-title {
  display: block;
  width: 100%;
  max-width: none;
}

.news-detail__excerpt {
  color: #666666;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.75;
}

.news-detail__cover {
  margin-top: 32px;
  overflow: hidden;
  border-radius: 18px;
  background: #eef0f3;
  box-shadow: 0 18px 40px rgba(28, 34, 72, 0.12);
}

.news-detail__cover-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  -o-object-fit: cover;
     object-fit: cover;
}

.news-detail__layout {
  display: grid;
  gap: 2rem;
  margin-top: 40px;
  align-items: stretch;
}

.news-detail__main {
  display: contents;
  min-width: 0;
}

.news-detail__aside {
  display: contents;
  min-width: 0;
  align-self: stretch;
}

.news-detail__sidebar-sticky {
  display: contents;
  width: 100%;
  scrollbar-width: none;
}

.news-detail__sidebar-sticky::-webkit-scrollbar {
  display: none;
}

.news-detail__toc {
  order: 4;
  width: 100%;
}

.news-detail__toc-title {
  display: flex;
  align-items: center;
  height: 60px;
  padding-left: 20px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(206deg, #29307f 0%, #cc1377 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.news-detail__toc-body {
  padding-inline: 30px;
  border: 1px solid #dcdcdc;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
}

.news-detail__toc-list {
  display: block;
  color: #303030;
  font-size: 16px;
  line-height: 1.45;
}

.news-detail__toc-item {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  -moz-column-gap: 12px;
       column-gap: 12px;
  align-items: start;
  padding-block: 10px;
  border-bottom: 1px dotted #dcdcdc;
  color: inherit;
  text-decoration: none;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.news-detail__toc-item:hover,
.news-detail__toc-item:focus-visible {
  color: #cc1377;
  outline: none;
}

.news-detail__toc-item::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-top: 0.55em;
  border-radius: 999px;
  background: #303030;
  transition: background 160ms ease;
}

.news-detail__toc-item:hover::before,
.news-detail__toc-item:focus-visible::before {
  background: #cc1377;
}

.news-detail__toc-anchor {
  display: block;
  visibility: hidden;
  height: 0;
  pointer-events: none;
  scroll-margin-top: calc(var(--header-h, 100px) + 24px);
}

.news-detail__toc-item:last-child {
  border-bottom: 0;
}

.news-detail__share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-block: 20px;
  border-top: 1px solid #d8d8d8;
}

.news-detail__share-label {
  color: #666666;
  font-size: 14px;
  line-height: 1.4;
}

.news-detail__share-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.news-detail__share-link {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.news-detail__share-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  transition: opacity 160ms ease;
}

.news-detail__share-icon--hover {
  opacity: 0;
}

.news-detail__share-link:hover .news-detail__share-icon--default,
.news-detail__share-link:focus-visible .news-detail__share-icon--default {
  opacity: 0;
}

.news-detail__share-link:hover .news-detail__share-icon--hover,
.news-detail__share-link:focus-visible .news-detail__share-icon--hover {
  opacity: 1;
}

.news-detail__extra {
  order: 7;
  margin-top: 0;
}

.news-detail__extra-image {
  display: block;
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.news-detail__extra-learn {
  padding: 20px 20px 40px 30px;
  background: #f0f2f5;
  border-radius: 0 0 8px 8px;
}

.news-detail__extra-list {
  color: #303030;
  font-size: 18px;
  line-height: 1.45;
}

.news-detail__extra-item {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  -moz-column-gap: 12px;
       column-gap: 12px;
  align-items: start;
  font-size: 16px;
}

.news-detail__extra-item + .news-detail__extra-item {
  margin-top: 10px;
}

.news-detail__extra-item::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-top: 0.55em;
  border-radius: 999px;
  background: #303030;
}

.news-detail__extra-cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  gap: 8px;
  padding-block: 9px;
  padding-inline: 14px;
  white-space: nowrap;
}

.news-detail__extra-cta-icon {
  width: 16px;
  height: 16px;
}

.news-detail__section-kicker {
  color: #cc1377;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-detail__content {
  display: grid;
  gap: 1.25rem;
  order: 5;
  margin-top: 36px;
  color: #4a4a4a;
  font-size: 14px;
  line-height: 1.5;
  max-width: none;
}

.news-detail__description {
  order: 3;
  margin-top: 36px;
  font-size: 16px;
  color: #303030;
  line-height: 23px;
  text-align: left;
  font-style: normal;
}

.news-detail__rich-text {
  width: 100%;
}

.news-detail__excerpt {
  order: 1;
}

.news-detail__cover {
  order: 2;
}

.news-detail__categories {
  order: 6;
  padding-block: 40px;
  margin-top: 16px;
  border-top: 1px solid #d8d8d8;
}

.news-detail__categories-title {
  color: #303030;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.news-detail__categories-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.news-detail__rich-text h2,
.news-detail__rich-text h3 {
  color: #303030;
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.news-detail__rich-text blockquote {
  margin: 8px 0;
  padding: 18px 22px;
  border-left: 4px solid #cc1377;
  border-radius: 0 12px 12px 0;
  background: #f7f7fb;
  color: #303030;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.news-detail__related {
  margin-top: 64px;
  padding-top: 42px;
  border-top: 1px solid rgba(48, 48, 48, 0.12);
}

.news-detail__related-header {
  display: grid;
  gap: 0.5rem;
}

.news-detail__section-title {
  color: #303030;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.news-detail__related-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 24px;
}

.news-detail__related-card {
  display: grid;
  overflow: hidden;
  color: currentColor;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(32, 38, 83, 0.12);
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.news-detail__related-card:hover,
.news-detail__related-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(32, 38, 83, 0.16);
}

.news-detail__related-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  -o-object-fit: cover;
     object-fit: cover;
}

.news-detail__related-body {
  display: grid;
  gap: 0.5rem;
  padding: 18px;
}

.news-detail__related-meta {
  color: #777777;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.news-detail__related-title {
  color: #303030;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .news-detail__breadcrumb {
    font-size: 16px;
  }

  .news-detail__layout {
    grid-template-areas:
      'excerpt sidebar'
      'cover sidebar'
      'description sidebar'
      'content sidebar'
      'categories sidebar';
    grid-template-columns: minmax(0, 1fr) minmax(240px, clamp(240px, 28vw, 440px));
    gap: 0 40px;
  }

  .news-detail__excerpt {
    grid-area: excerpt;
  }

  .news-detail__cover {
    grid-area: cover;
  }

  .news-detail__description {
    grid-area: description;
  }

  .news-detail__content {
    grid-area: content;
    font-size: 18px;
  }

  .news-detail__toc-list {
    font-size: 16px;
  }

  .news-detail__categories {
    grid-area: categories;
  }

  .news-detail__aside {
    display: block;
    grid-area: sidebar;
    position: sticky;
    top: calc(var(--news-detail-header-offset) + 24px);
    width: 100%;
    min-width: 240px;
    max-width: 440px;
    align-self: start;
  }

  .news-detail__sidebar-sticky {
    display: block;
  }
  .news-detail__extra {
    padding-top: 32px;
  }
}

@media (min-width: 960px) {
  .news-detail {
    padding-top: calc(var(--news-detail-header-offset) + 72px);
    padding-bottom: 0;
  }

  .news-detail__title {
    font-size: 46px;
  }

  .news-detail__excerpt {
    font-size: 18px;
  }

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

@media (min-width: 1280px) {
  .news-detail__toc-title {
    height: 48px;
  }
}

@media (min-width: 1440px) {
  .news-detail__title {
    font-size: 54px;
  }
}

@media (min-width: 1860px) {
  .news-detail__toc-title {
    height: 60px;
  }
}

.news-detail__related-nav {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 40%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.news-detail__related-nav--prev {
  left: 24px;
}

.news-detail__related-nav--next {
  right: 24px;
}

.news-detail__related-nav-icon {
  width: 28px;
  height: 28px;
}

.news-detail__related-nav-icon--hover {
  display: none;
}

.news-detail__related-nav:hover .news-detail__related-nav-icon--default,
.news-detail__related-nav:focus-visible .news-detail__related-nav-icon--default {
  display: none;
}

.news-detail__related-nav:hover .news-detail__related-nav-icon--hover,
.news-detail__related-nav:focus-visible .news-detail__related-nav-icon--hover {
  display: block;
}

.news-detail__related-nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}
