/**
 * News detail page — custom-news-details.php
 */

.site-content:has(.mfe-news-detail) #secondary.widget-area {
  display: none !important;
}

#primary.content-area.mfe-news-detail-wrap {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.site-content:has(.mfe-news-detail) .hm-container {
  max-width: 100%;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.mfe-news-detail {
  --mfe-red: #e11d2e;
  --mfe-ink: #111827;
  --mfe-muted: #6b7280;
  --mfe-line: #e5e7eb;
  background: #fff;
  color: var(--mfe-ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.mfe-news-detail__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.mfe-news-detail__crumb {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--mfe-muted);
}

.mfe-news-detail__crumb a {
  color: var(--mfe-red);
  text-decoration: none;
  font-weight: 600;
}

.mfe-news-detail__crumb span {
  margin: 0 6px;
}

.mfe-news-detail__date {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mfe-red);
}

.mfe-news-detail__title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.mfe-news-detail__excerpt {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--mfe-muted);
  max-width: 46rem;
}

.mfe-news-detail__hero {
  margin: 24px 0 28px;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

.mfe-news-detail__hero img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.mfe-news-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
}

.mfe-news-detail__content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1f2937;
}

.mfe-news-detail__content p {
  margin: 0 0 1em;
}

.mfe-news-detail__content h2,
.mfe-news-detail__content h3 {
  margin: 1.4em 0 0.5em;
  line-height: 1.3;
}

.mfe-news-detail__content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.mfe-news-detail__content a {
  color: var(--mfe-red);
}

.mfe-news-detail__aside {
  position: sticky;
  top: 20px;
}

.mfe-news-detail__box {
  border: 1px solid var(--mfe-line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
}

.mfe-news-detail__box h2 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mfe-muted);
}

.mfe-news-detail__box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mfe-news-detail__box li {
  padding: 6px 0;
  border-top: 1px solid #f3f4f6;
  font-size: 0.92rem;
  font-weight: 600;
}

.mfe-news-detail__box li:first-child {
  border-top: 0;
  padding-top: 0;
}

.mfe-news-detail__box a {
  color: var(--mfe-ink);
  text-decoration: none;
}

.mfe-news-detail__box a:hover {
  color: var(--mfe-red);
}

.mfe-news-detail__back {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--mfe-red);
  text-decoration: none;
}

@media (max-width: 860px) {
  .mfe-news-detail__layout {
    grid-template-columns: 1fr;
  }

  .mfe-news-detail__aside {
    position: static;
  }
}
