/* v0.81 — Noticias editorial: subhero, video, galería, relacionadas y admin refinado. */

.news-hero,
.news-detail-hero {
  min-height: 360px;
}

.news-detail-hero .breadcrumbs.light,
.news-detail-hero .breadcrumbs.light a {
  color: rgba(255,255,255,.82);
}

.news-detail-hero h1 {
  max-width: 900px;
}

.news-detail-layout {
  align-items: start;
}

.news-body-card {
  padding: 0;
}

.news-body-card > p,
.news-body-card > h2,
.news-body-card > h3,
.news-body-card > ul,
.news-body-card > ol,
.news-body-card > blockquote {
  max-width: 780px;
}

.news-video-card {
  margin-top: 1.6rem;
}

.news-gallery-block {
  margin-top: 2rem;
}

.gallery-grid-wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.gallery-grid-wide .gallery-thumb {
  height: 170px;
}

.related-news-list {
  display: grid;
  gap: .75rem;
  margin: 1rem 0;
}

.related-news-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: .7rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: .62rem;
  border: 1px solid #dfe6f3;
  border-radius: 16px;
  background: #fff;
}

.related-news-item img {
  width: 76px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.related-news-item small,
.related-news-item strong {
  display: block;
}

.related-news-item small {
  color: #00617d;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.related-news-item strong {
  margin-top: .18rem;
  line-height: 1.08;
}

.news-filter-card {
  grid-template-columns: minmax(260px, 1.4fr) minmax(190px, .8fr) minmax(150px, .6fr) auto;
}

.news-editor .admin-editor-main fieldset,
.news-editor .admin-side-panel .admin-card {
  margin-bottom: 1rem;
}

.news-editor .admin-media-preview {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: .8rem;
}

.admin-media-bank-list {
  display: grid;
  gap: .6rem;
  max-height: 360px;
  overflow: auto;
  padding-right: .35rem;
}

.media-bank-option {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  gap: .65rem;
  align-items: center;
  padding: .55rem;
  border: 1px solid #dfe6f3;
  border-radius: 16px;
  background: #fff;
}

.media-bank-option.is-selected,
.admin-check-card.is-selected {
  border-color: #7d65ca;
  background: #f4f0ff;
}

.media-bank-option img {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.media-bank-option strong,
.media-bank-option small {
  display: block;
}

.media-bank-option strong {
  line-height: 1.1;
}

.media-bank-option small {
  color: #6d7892;
  font-size: .76rem;
}

.news-related-picker {
  max-height: 300px;
  overflow: auto;
  padding-right: .3rem;
}

.news-admin-table table {
  table-layout: fixed;
}

.news-admin-table th:nth-child(1) { width: 34%; }
.news-admin-table th:nth-child(2) { width: 16%; }
.news-admin-table th:nth-child(3) { width: 20%; }
.news-admin-table th:nth-child(4) { width: 11%; }
.news-admin-table th:nth-child(5) { width: 10%; }
.news-admin-table th:nth-child(6) { width: 9%; }

.news-title-cell strong,
.news-title-cell small {
  display: block;
}

.news-title-cell small {
  margin-top: .25rem;
  color: #68758e;
  line-height: 1.35;
}

.muted-chip {
  background: #f1eefb;
  border-color: #e0d9f5;
}

@media (max-width: 980px) {
  .news-filter-card {
    grid-template-columns: 1fr;
  }
  .gallery-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-grid-wide {
    grid-template-columns: 1fr;
  }
}
