/* ============ NEWS HERO ============ */
.news-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  padding-top: 80px;
}

.news-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#news-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.news-hero-content {
  text-align: center;
  z-index: 1;
  padding: 0 24px;
}

.news-hero-title {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.news-hero-sub {
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 2;
  color: var(--text-on-dark);
  max-width: 540px;
  margin: 0 auto;
}

/* ============ NEWS LIST SECTION ============ */
.news-list-section {
  background: #111827;
  padding: 80px 48px;
  min-height: 60vh;
}

.news-list-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}

/* ============ SIDEBAR ============ */
.news-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.news-sidebar-title {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.news-archive {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-archive-month {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.news-archive-month:first-child {
  margin-top: 0;
}

.news-date-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-en);
  font-size: var(--text-base);
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.news-date-link:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.news-date-link.active {
  background: rgba(37,99,235,0.15);
  color: var(--accent-light);
  font-weight: 500;
}

/* ============ ARTICLE ============ */
.news-article {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 48px;
}

.news-loading {
  color: rgba(255,255,255,0.4);
  font-size: var(--text-base);
  text-align: center;
  padding: 40px 0;
}

/* Markdown rendered content */
.news-article h1 {
  font-family: var(--font-jp);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.5;
}

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

.news-article h2 {
  font-family: var(--font-jp);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  line-height: 1.5;
}

.news-article h3 {
  font-family: var(--font-jp);
  font-size: var(--text-lg);
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.news-article h4 {
  font-family: var(--font-jp);
  font-size: var(--text-md);
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 24px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.news-article p {
  font-size: var(--text-base);
  line-height: 2;
  color: var(--text-on-dark);
  font-weight: 300;
  margin-bottom: 16px;
}

.news-article em {
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.news-article strong {
  color: #e2e8f0;
  font-weight: 600;
}

.news-article hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 32px 0;
}

.news-article ul,
.news-article ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.news-article li {
  font-size: var(--text-base);
  line-height: 2;
  color: var(--text-on-dark);
  font-weight: 300;
  margin-bottom: 4px;
}

.news-article code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85em;
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #93c5fd;
}

.news-article pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.news-article pre code {
  background: none;
  padding: 0;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #93c5fd;
}

.news-article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.news-article th {
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.news-article td {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-on-dark);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 300;
}

.news-article blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 20px 0;
  color: rgba(255,255,255,0.6);
}

/* Date header shown above article */
.news-date-header {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 24px;
  text-transform: uppercase;
}

/* Error state */
.news-error {
  color: #f87171;
  text-align: center;
  padding: 40px 0;
}

/* ============ NAV ACTIVE ============ */
.nav-active {
  color: #fff !important;
}

.nav-active::after {
  width: 100% !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .news-list-section {
    padding: 60px 32px;
  }
}

@media (max-width: 768px) {
  .news-hero {
    min-height: 30vh;
    padding-top: 70px;
  }

  .news-list-section {
    padding: 40px 24px;
  }

  .news-list-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .news-sidebar {
    position: static;
    order: -1;
  }

  .news-archive {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .news-archive-month {
    width: 100%;
    margin-top: 8px;
  }

  .news-date-link {
    padding: 6px 12px;
    font-size: var(--text-sm);
  }

  .news-article {
    padding: 28px 20px;
  }
}
