:root {
  --news-shell-width: min(1480px, calc(100vw - 56px));
  --news-sidebar-width: 292px;
  --news-gap: 28px;
}

.news-sidebar {
  top: 150px;
  left: max(16px, calc((100vw - var(--news-shell-width)) / 2));
  width: var(--news-sidebar-width);
  height: auto;
  background: transparent;
  border-right: none;
  box-shadow: none;
  padding: 0;
  z-index: 110;
}

.news-sidebar .sidebar-card {
  border: none;
  border-bottom: 1px solid var(--outline-variant, rgba(45, 47, 47, 0.15));
  border-radius: 0;
  background: transparent;
  padding: 0 0 14px;
  margin-bottom: 14px;
}

.news-sidebar .sidebar-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.sidebar-header {
  margin-bottom: 0;
}

.sidebar-header p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted, #6b6b6b);
}

.filter-container {
  gap: 5px;
  margin: 0;
}

.sort-container {
  margin: 0;
}

.sort-label {
  display: none;
}

.news-view {
  width: var(--news-shell-width);
  max-width: none;
  margin: 0 auto;
  padding: 42px 0 44px calc(var(--news-sidebar-width) + var(--news-gap));
  box-sizing: border-box;
}

.news-view .docs-page-hero {
  margin: 0 auto 26px;
}

.news-view .docs-page-subtitle {
  margin-bottom: 28px;
}

.news-posts {
  gap: 16px;
}

.news-tile {
  background: var(--glass-bg, rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(var(--glass-blur, 24px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 24px));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.6));
  border-radius: var(--radius-card, 3rem);
  box-shadow: var(--shadow-ambient, 0 12px 48px rgba(45, 47, 47, 0.05));
  aspect-ratio: auto;
  height: auto;
  overflow: hidden;
}

.news-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium, 0 8px 32px rgba(45, 47, 47, 0.06));
}

.news-tile-link {
  height: auto;
}

.news-image {
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content h3 {
  overflow-wrap: anywhere;
}

.sidebar-toggle {
  display: none;
}

@media (max-width: 1020px) {
  :root {
    --news-shell-width: min(1200px, calc(100vw - 34px));
  }

  .news-view {
    padding-left: calc(var(--news-sidebar-width) + 20px);
  }
}

@media (max-width: 768px) {
  :root {
    --news-shell-width: calc(100vw - 24px);
  }

  .news-sidebar {
    top: 0;
    left: 0;
    width: min(360px, 86vw);
    height: 100dvh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(var(--glass-blur, 24px));
    -webkit-backdrop-filter: blur(var(--glass-blur, 24px));
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.25s ease;
    border-right: 1px solid var(--glass-border, rgba(255, 255, 255, 0.6));
    box-shadow: var(--shadow-heavy, 0 14px 52px rgba(45, 47, 47, 0.085));
    z-index: 130;
    padding: 14px;
  }

  .news-sidebar.mobile-open {
    transform: translateX(0);
  }

  .news-sidebar .sidebar-card {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .sidebar-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.36);
    transition: opacity 0.2s ease;
    z-index: 125;
  }

  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-toggle {
    display: inline-flex;
    position: sticky;
    top: 10px;
    z-index: 122;
    align-self: flex-start;
  }

  .news-view {
    width: var(--news-shell-width);
    padding: 30px 0 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .news-view .docs-page-hero {
    margin-bottom: 0;
  }

  .news-tile {
    aspect-ratio: auto;
  }

  .news-content {
    padding: var(--spacing-md);
    padding-bottom: calc(var(--spacing-md) + 2.15rem);
  }

  .content-type-badge {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }
}

@media (max-width: 720px) {
  .sidebar-toggle {
    top: 8px;
  }
}

@media (max-width: 600px) {
  .news-view {
    padding: 20px 0 30px;
  }

  .news-tile {
    aspect-ratio: auto;
  }

  .news-image {
    aspect-ratio: 16 / 9;
  }

  .news-content {
    padding: 0.95rem;
    padding-bottom: calc(0.95rem + 2.1rem);
  }

  .news-content h3 {
    font-size: 1rem;
    line-height: 1.22;
    margin-bottom: 0.45rem;
  }

  .news-date {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
  }

  .news-content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .content-type-badge {
    bottom: 0.95rem;
    right: 0.95rem;
  }
}

@media (max-width: 480px) {
  .news-content {
    padding: 0.9rem;
    padding-bottom: calc(0.9rem + 2.05rem);
  }

  .content-type-badge {
    bottom: 0.9rem;
    right: 0.9rem;
  }
}
