/*
 * Guangai project-specific frontend overrides.
 * Keep vendor design assets in all.css untouched so upstream updates remain safe.
 */

@media (min-width: 992px) {
  .news-content-head {
    display: grid;
    grid-template-areas:
      "title breadcrumb"
      "categories categories";
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: center;
  }

  .news-content-head .main-title {
    grid-area: title;
    margin-right: 0;
  }

  .news-content-head .breadcrumb {
    grid-area: breadcrumb;
    justify-self: end;
    margin-left: 0;
  }

  .news-content-head .content-nav {
    grid-area: categories;
    width: 100%;
  }

  .news-content-head .content-nav-list {
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
  }

  .news-content-head .content-nav-list > li {
    margin-left: 0;
  }
}

#news-results {
  transition: opacity 160ms ease;
}

#news-results.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.news-empty-state {
  display: grid;
  min-height: 15rem;
  place-items: center;
  padding: 2rem;
  color: #666;
  background: #fffaf6;
  border: 1px dashed #f38f1e;
  border-radius: 10px;
  text-align: center;
}

.news-empty-state p {
  margin: 0;
  font-size: 1.125rem;
}

@media (prefers-reduced-motion: reduce) {
  #news-results {
    transition: none;
  }
}
