/* —— Article detail page —— */
body.article-page {
  background: var(--bg);
}

.article-page .site {
  padding-bottom: 32px;
}

.nav__link.is-active {
  color: var(--teal);
  font-weight: 600;
}

.article-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) clamp(12px, 2vw, 20px);
}

.article-detail__card {
  padding: clamp(24px, 4vw, 36px);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(16, 42, 39, 0.06);
}

.article-detail__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.article-detail__meta {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  color: var(--muted-2);
}

.article-detail__cover {
  margin-bottom: 24px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #eef5f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-detail__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

.article-detail__body h2 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-detail__body h2:first-child {
  margin-top: 0;
}

.article-detail__body p {
  margin: 0 0 16px;
}

.article-detail__body p:last-child {
  margin-bottom: 0;
}

.article-detail__body img {
  width: 100%;
  margin: 20px 0;
  border-radius: 10px;
}

.article-detail__body img.is-zoomable,
.article-detail__cover img.is-zoomable {
  cursor: zoom-in;
}

body.is-lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  background: rgba(15, 23, 42, 0.88);
  cursor: zoom-out;
}

.image-lightbox__img {
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 48px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  cursor: default;
}

.image-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.image-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.article-detail__body a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: rgba(13, 148, 136, 0.1);
  padding: 0 3px;
  border-radius: 3px;
}

.article-detail__body a:hover {
  color: var(--teal-hover);
}

.article-detail__cta {
  display: block;
  margin-top: 28px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    #8eaea6 0%,
    var(--teal) 48%,
    var(--teal-hover) 100%
  );
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-detail__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.28);
}

.article-detail__related {
  max-width: 760px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding: 0 clamp(12px, 2vw, 20px);
}

.article-detail__related-title {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
}

.article-detail__related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.article-detail__related-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.article-detail__related-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
}

.article-detail__related-cover {
  height: 72px;
}

.article-detail__related-body {
  padding: 12px 14px 14px;
}

.article-detail__related-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .article-detail__related-grid {
    grid-template-columns: 1fr;
  }
}
