/* Scoped, config-driven banner below the final sidebar navigation item. */
.sidebar-news {
  position: relative;
  z-index: 4;
  width: 100%;
  margin: 14px 0 8px;
  padding: 14px;
  border: 1px solid rgba(216, 163, 67, .28);
  border-radius: 9px;
  background:
    radial-gradient(circle at 100% 0, rgba(216, 163, 67, .08), transparent 42%),
    linear-gradient(145deg, rgba(12, 18, 23, .97), rgba(6, 10, 13, .98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .018);
  overflow: hidden;
  flex: 0 0 auto;
}
.sidebar-news-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.sidebar-news-category { color: var(--gold-300); font-size: 9px; font-weight: 700; letter-spacing: .14em; line-height: 1.35; }
.sidebar-news-badge { flex: 0 0 auto; padding: 3px 7px; border: 1px solid rgba(216, 163, 67, .34); border-radius: 999px; color: #dbc17d; background: rgba(216, 163, 67, .07); font-size: 9px; line-height: 1.2; }
.sidebar-news h2 { margin: 0 0 7px; color: var(--text-primary); font: 500 19px/1.12 var(--serif); overflow-wrap: anywhere; }
.sidebar-news p { margin: 0; color: var(--text-secondary); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.sidebar-news-image { display: block; width: calc(100% + 28px); max-height: 112px; margin: -14px -14px 13px; object-fit: cover; border-bottom: 1px solid rgba(216, 163, 67, .18); }
.sidebar-news-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 38px; margin-top: 13px; padding: 8px 10px; border: 1px solid rgba(216, 163, 67, .58); border-radius: 7px; color: var(--gold-300); background: rgba(216, 163, 67, .045); font-size: 11px; font-weight: 650; line-height: 1.25; text-align: center; transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease; }
.sidebar-news-action:hover { border-color: var(--gold-300); color: var(--gold-100); background: rgba(216, 163, 67, .1); transform: translateY(-1px); }
.sidebar-news-action:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }
.sidebar-news-compact { display: none; }

/* The application already collapses the desktop sidebar at this breakpoint. */
@media (min-width: 981px) and (max-width: 1280px) {
  .sidebar-news { display: grid; place-items: center; min-height: 58px; margin-top: 12px; padding: 8px 4px; }
  .sidebar-news-head, .sidebar-news-copy, .sidebar-news-image, .sidebar-news-action { display: none; }
  .sidebar-news-compact { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(216, 163, 67, .38); border-radius: 50%; color: var(--gold-300); font: 600 13px/1 var(--serif); letter-spacing: .04em; }
}

@media (max-width: 980px) {
  .sidebar { overflow-y: auto; overscroll-behavior: contain; }
  .sidebar-news { margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-news-action { transition: none; }
}
