/* ===== News hub (MTI-inspired) ===== */
.news-hub-page {
  background: #0a0a10;
  color: #fff;
}

.news-hub {
  padding: calc(var(--header-height, 72px) + 2.5rem) 0 5rem;
}

.news-hub-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  align-items: start;
}

.news-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.news-col-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
}

.news-all-btn {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.news-all-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.news-all-btn--weazel {
  background: #f5d76e;
  color: #111;
}

.news-all-btn--weazel:hover {
  background: #ffe789;
  color: #111;
}

.news-feature {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-feature:hover .news-feature-img {
  transform: scale(1.04);
}

.news-feature-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.35rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.news-tags span,
.news-tag {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.85);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-feature h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.news-meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  margin: 0;
}

.news-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #14141c;
  transition: transform 0.2s, border-color 0.2s;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.45);
}

.news-card-img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.news-card-body {
  padding: 0.95rem 1rem 1.1rem;
}

.news-card h3 {
  font-size: 0.98rem;
  line-height: 1.35;
  margin: 0.45rem 0 0.55rem;
}

/* Weazel newspaper panel */
.weazel-panel {
  background:
    linear-gradient(180deg, #1a1812 0%, #12100c 100%);
  border: 2px solid #f5d76e;
  border-radius: 4px;
  padding: 1.15rem 1.15rem 1.35rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 18px 40px rgba(0, 0, 0, 0.35);
  position: relative;
}

.weazel-panel::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(245, 215, 110, 0.25);
  pointer-events: none;
}

.weazel-masthead {
  text-align: center;
  border-bottom: 3px double #f5d76e;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}

.weazel-kicker {
  font-family: 'Oswald', var(--font-display), sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5d76e;
  margin: 0 0 0.35rem;
}

.weazel-masthead h2 {
  font-family: 'Oswald', var(--font-display), sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.08em;
  margin: 0;
  color: #fff;
}

.weazel-masthead h2 span {
  color: #f5d76e;
}

.weazel-slogan {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0.35rem 0 0;
}

.weazel-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.85rem;
  padding: 0.95rem 0.75rem;
  margin: 0 -0.75rem;
  border-radius: 8px;
  border-bottom: 1px solid rgba(245, 215, 110, 0.18);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.weazel-item:last-of-type {
  border-bottom: 1px solid rgba(245, 215, 110, 0.18);
}

.weazel-item:hover {
  background: rgba(245, 215, 110, 0.1);
  transform: translateX(4px);
  box-shadow: inset 3px 0 0 #f5d76e;
}

.weazel-item-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.85rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.weazel-item:hover .weazel-item-meta {
  color: rgba(245, 215, 110, 0.85);
}

.weazel-item h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
  color: #f8f1d8;
  grid-column: 1;
  transition: color 0.2s;
}

.weazel-item:hover h3 {
  color: #f5d76e;
}

.weazel-comments {
  display: none;
}

.weazel-thumb {
  grid-column: 2;
  grid-row: 2 / 4;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(245, 215, 110, 0.35);
  transition: transform 0.25s ease, border-color 0.2s, box-shadow 0.25s;
}

.weazel-item:hover .weazel-thumb {
  transform: scale(1.06);
  border-color: #f5d76e;
  box-shadow: 0 0 16px rgba(245, 215, 110, 0.25);
}

.weazel-more {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(245, 215, 110, 0.35);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5d76e;
  font-size: 0.85rem;
}

.weazel-more:hover {
  color: #fff;
}

/* ===== Listing pages ===== */
.news-list-page {
  background: #0a0a10;
  color: #fff;
}

.news-list-hero {
  padding: calc(var(--header-height, 72px) + 2.5rem) 0 1.5rem;
}

.news-list-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.news-list-hero p {
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.news-list-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  padding-bottom: 4rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.news-list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.1rem;
  padding: 1rem;
  border-radius: 14px;
  background: #14141c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, transform 0.2s;
  color: inherit;
  text-decoration: none;
}

.news-list-excerpt {
  color: rgba(255, 255, 255, 0.65);
  margin: 0.75rem 0 0;
  line-height: 1.55;
}

.weazel-article--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border-radius: 6px;
  margin: 0 -0.5rem;
  padding: 1.5rem 0.5rem;
}

.weazel-article--link:hover {
  background: rgba(245, 215, 110, 0.06);
  transform: translateX(4px);
}

.weazel-article--link:hover h2 {
  color: #f5d76e;
}

/* ===== Article detail ===== */
.article-page {
  background: #0a0a10;
  color: #fff;
  min-height: 100vh;
}

.article-loading,
.article-missing {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 1rem;
  padding: 6rem 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.article {
  padding-bottom: 3rem;
}

.article-top {
  padding: calc(var(--header-height, 72px) + 2rem) 0 1.25rem;
}

.article-page.has-breadcrumbs .article-top {
  padding-top: 1.5rem;
}

.article-top h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0.75rem 0 1rem;
  max-width: none;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}

.article-byline {
  margin: 0.85rem 0 0;
  font-style: italic;
  color: #f5d76e;
  font-family: 'Libre Baskerville', Georgia, serif;
}

.article-cover-wrap {
  max-width: 1100px;
  margin: 0 auto 1.75rem;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.article-cover {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-body {
  max-width: 720px;
  overflow-x: hidden;
  word-break: break-word;
}

.article-body img,
.article-body video,
.article-body iframe,
.article-body figure,
.article-body table {
  max-width: 100% !important;
  height: auto !important;
}

.article-body figure {
  margin: 1rem 0;
}

.article-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.article-lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.5rem;
}

.article-body p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-nav a {
  color: var(--accent);
  font-weight: 600;
}

.article-page.article-weazel,
body.article-weazel {
  background: #0f0e0a;
  color: #f4ecd4;
}

.article--weazel .article-top h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  max-width: 22ch;
  letter-spacing: 0;
  text-transform: none;
}

.article--weazel .article-cover {
  border-color: rgba(245, 215, 110, 0.35);
  filter: contrast(1.05) sepia(0.12);
}

.article--weazel .article-body p,
.article--weazel .article-lead {
  font-family: 'Libre Baskerville', Georgia, serif;
}

.article--weazel .article-nav {
  border-top-color: rgba(245, 215, 110, 0.25);
}

.article--weazel .article-nav a {
  color: #f5d76e;
}

.news-list-item:hover {
  border-color: rgba(124, 58, 237, 0.45);
  transform: translateY(-2px);
}

.news-list-thumb {
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  min-height: 120px;
}

.news-list-body h2 {
  font-size: 1.15rem;
  margin: 0.4rem 0 0.5rem;
  line-height: 1.3;
}

.news-side {
  position: sticky;
  top: calc(var(--header-height, 72px) + 1rem);
  align-self: start;
  padding: 1.1rem;
  border-radius: 14px;
  background: #14141c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-side h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-side a {
  display: block;
  padding: 0.45rem 0;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.news-side a:hover {
  color: var(--accent);
}

/* Weazel full page */
.weazel-page {
  background: #0f0e0a;
  color: #f4ecd4;
}

.weazel-page-hero {
  padding: calc(var(--header-height, 72px) + 2rem) 0 1rem;
  text-align: center;
}

.weazel-page-hero .weazel-masthead {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1rem;
  background: #16140f;
  border: 3px solid #f5d76e;
}

.weazel-page-hero .weazel-masthead h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.weazel-paper {
  max-width: 900px;
  margin: 0 auto 4rem;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(245, 215, 110, 0.03) 0 1px,
      transparent 1px 28px
    ),
    #1a1812;
  border: 2px solid #f5d76e;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 2rem;
}

.weazel-article {
  padding: 1.5rem 0;
  border-bottom: 2px solid rgba(245, 215, 110, 0.25);
  scroll-margin-top: calc(var(--header-height, 72px) + 1rem);
}

.weazel-article:last-child {
  border-bottom: 0;
}

.weazel-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: rgba(244, 236, 212, 0.55);
  margin-bottom: 0.65rem;
}

.weazel-article h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: #fff8e0;
}

.weazel-article-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border: 1px solid rgba(245, 215, 110, 0.35);
  margin-bottom: 1rem;
  filter: contrast(1.05) sepia(0.15);
}

.weazel-article p {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(244, 236, 212, 0.85);
  margin: 0 0 0.9rem;
}

.weazel-byline {
  font-style: italic;
  color: #f5d76e;
  margin-bottom: 0.75rem !important;
}

@media (max-width: 980px) {
  .news-hub-grid,
  .news-list-layout {
    grid-template-columns: 1fr;
  }

  .news-cards {
    grid-template-columns: 1fr;
  }

  .news-list-item {
    grid-template-columns: 1fr;
  }

  .news-list-thumb {
    min-height: 160px;
  }

  .news-side {
    position: static;
  }
}
