/* ════════════════════════════════════════
   NEWS PAGE — nav overrides
════════════════════════════════════════ */

/* Brand as a link */
a.nav-brand {
  text-decoration: none;
  color: var(--white);
}
a.nav-brand:hover { color: var(--white); }

.news-nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.news-back-link {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white60);
  text-decoration: none;
  transition: color .2s;
}
.news-back-link:hover { color: var(--blue); }


/* ════════════════════════════════════════
   NEWS PAGE — shell layout
════════════════════════════════════════ */

.news-shell {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
}


/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */

.news-sidebar-wrap {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  align-self: flex-start;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0 60px;
  scrollbar-width: thin;
  scrollbar-color: rgba(45,128,201,0.3) transparent;
}
.news-sidebar-wrap::-webkit-scrollbar { width: 4px; }
.news-sidebar-wrap::-webkit-scrollbar-track { background: transparent; }
.news-sidebar-wrap::-webkit-scrollbar-thumb { background: rgba(45,128,201,0.3); border-radius: 2px; }

#news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
}

.sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background .2s;
  width: 100%;
}
.sidebar-item:hover { background: rgba(255,255,255,0.04); }
.sidebar-item.is-active { background: rgba(45,128,201,0.10); }

.sidebar-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity .2s;
}
.sidebar-item:hover .sidebar-thumb,
.sidebar-item.is-active .sidebar-thumb { opacity: 1; }

.sidebar-item-date {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
}

.sidebar-item-title {
  font-size: 13px;
  line-height: 1.55;
  color: var(--white30);
  font-family: 'Playfair Display', serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.sidebar-item:hover .sidebar-item-title,
.sidebar-item.is-active .sidebar-item-title { color: var(--white); }


/* ════════════════════════════════════════
   CONTENT AREA
════════════════════════════════════════ */

.news-content-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 64px 72px;
  min-width: 0;
}

#news-content {
  width: 100%;
  max-width: 700px;
}


/* ════════════════════════════════════════
   ARTICLE
════════════════════════════════════════ */

.news-date {
  margin-bottom: 16px;
}

.news-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 32px;
}

.news-body {
  margin-top: 40px;
}

/* Clearfix for floated images */
.news-body::after {
  content: '';
  display: table;
  clear: both;
}


/* ── Block: paragraph ── */
.news-p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--white60);
  margin-bottom: 20px;
}

/* ── Block: headings ── */
.news-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 400;
  color: var(--white);
  margin: 52px 0 20px;
  line-height: 1.25;
  clear: both;
}

.news-h3 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 40px 0 14px;
  clear: both;
}

/* ── Block: blockquote ── */
.news-bq {
  border-left: 2px solid var(--blue);
  padding: 10px 24px;
  margin: 36px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--white60);
  line-height: 1.65;
}

/* ── Block: divider ── */
.news-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 52px 0;
}

/* ── Block: image ── */
.news-figure {
  margin: 32px 0;
}
.news-figure img {
  border-radius: 4px;
  width: 100%;
}
.news-figure--center {}
.news-figure--left {
  float: left;
  width: 44%;
  margin: 4px 28px 16px 0;
}
.news-figure--right {
  float: right;
  width: 44%;
  margin: 20px 0 20px 28px;
}
.news-fig-caption {
  font-size: 12px;
  color: var(--white30);
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* ── Block: list ── */
.news-list {
  padding-left: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--white60);
}

/* Rich list item (text + image) */
.news-li--rich {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  list-style: none;
  margin-left: -20px;
}

.news-li-text {
  flex: 1;
  min-width: 0;
}

.news-li-img {
  flex-shrink: 0;
  width: 160px;
  margin: 0;
}
.news-li-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.news-li-img--left { order: -1; }
.news-li-img--right { order: 1; }


/* ════════════════════════════════════════
   RESPONSIVE — tablet (≤1024px)
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .news-sidebar-wrap { width: 260px; }
  .news-content-wrap { padding: 48px 40px; }
}


/* ════════════════════════════════════════
   RESPONSIVE — mobile (≤768px)
════════════════════════════════════════ */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }

  .news-shell {
    flex-direction: column;
    padding-top: 60px;
  }

  /* Sidebar becomes a horizontal scroll strip at the top */
  .news-sidebar-wrap {
    width: 100%;
    max-height: none;
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0 16px;
    overflow-y: visible;
    overflow-x: auto;
  }

  #news-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 16px 4px;
    gap: 8px;
    scrollbar-width: none;
  }
  #news-sidebar::-webkit-scrollbar { display: none; }

  .sidebar-item {
    min-width: 180px;
    flex-shrink: 0;
  }

  .sidebar-thumb { height: 64px; }

  .news-content-wrap { padding: 36px 24px 60px; }

  .news-title,
  .news-p,
  .news-bq,
  .news-li {
    text-align: justify;
  }

  /* Floated images center on mobile — !important overrides inline width from data */
  .news-figure--left,
  .news-figure--right {
    float: none;
    width: 80% !important;
    margin: 24px auto;
  }

  /* Rich list items stack, image centers */
  .news-li--rich {
    flex-direction: column;
    align-items: center;
  }
  .news-li-img {
    width: 80% !important;
    order: 0;
  }
  .news-li-text {
    width: 100%;
    text-align: left;
  }

  .news-back-link { display: none; }
  .news-nav-right { gap: 0; }
}
