.news-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 1rem;
  width: min(100%, 40rem);
}

.news-list--grid {
  width: min(100%, 72rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
}

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

@media (max-width: 720px) {
  .news-list--grid {
    grid-template-columns: 1fr;
  }
}

.news-card-item {
  list-style: none;
}

.news-card-item--preview {
  list-style: none;
}

.news-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.05rem;
  border: none;
  border-radius: 15px;
  background: #fff;
  color: inherit;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.05);
  cursor: pointer;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.news-card:hover,
.news-card:focus-visible {
  border-color: transparent;
  box-shadow: 0 10px 28px rgb(7 123 58 / 0.12);
  transform: translateY(-1px);
  outline: none;
}

.news-card--preview {
  cursor: default;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.07);
}

.news-card--preview:hover {
  transform: none;
}

.news-card--manage {
  cursor: default;
  box-shadow: 0 6px 20px rgb(15 23 42 / 0.06);
}

.news-card--manage:hover,
.news-card--manage:focus-visible {
  transform: none;
  border-color: #e5e7eb;
  box-shadow: 0 6px 20px rgb(15 23 42 / 0.06);
}

.news-card--draft {
  border-color: #e5d4a8;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 2.75rem);
}

.news-card--draft:hover,
.news-card--draft:focus-visible {
  border-color: #e5d4a8;
}

.news-card__draft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: -1rem -1.1rem 0.15rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.9rem 0.9rem 0 0;
  background: #fef3c7;
  border-bottom: 1px solid #f3e2a8;
}

.news-card__draft-banner-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #92400e;
}

.news-card__draft-banner-hint {
  font-size: 0.8125rem;
  font-weight: 550;
  color: #a16207;
}

.news-card__status {
  font-weight: 700;
  color: #6b7280;
}

.news-card__status--published {
  color: #067b3a;
}

.news-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eef2f0;
}

.news-card__actions .button {
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
}

.news-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-card__avatar {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  background: #ecfdf3;
  flex-shrink: 0;
}

.news-card__avatar--fallback {
  display: grid;
  place-items: center;
  font-weight: 750;
  color: #067b3a;
  background: #ecfdf3;
}

.news-card__identity {
  min-width: 0;
}

.news-card__author {
  margin: 0;
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
  color: #111827;
  text-decoration: none;
}

a.news-card__author:hover {
  color: #067b3a;
  text-decoration: underline;
}

.news-card__time {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.news-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.35;
  color: #111827;
}

.news-card__text {
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #374151;
}

.news-card__text p {
  margin: 0;
  white-space: pre-wrap;
}

.news-card__text a {
  color: #067b3a;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.news-card__photo {
  display: block;
  width: calc(100% + 2.2rem);
  max-width: none;
  margin: 0.15rem -1.1rem 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  background: #ecfdf3;
}

.news-card__more,
.news-card__preview-label {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
}

.news-card__more {
  color: #067b3a;
}

.news-card__preview-label {
  color: #9ca3af;
}

.news-card--public {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 21rem;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgb(16 35 26 / 0.08);
  border-radius: 1.35rem;
  background: #fff;
}

.news-card__public-header {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 7.5rem;
  padding: 1.25rem 1.35rem;
  overflow: hidden;
  border-bottom: 1px solid rgb(16 35 26 / 0.08);
  color: #10231a;
  background: var(--news-card-brand, #077b3a);
}

.news-card__public-header::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgb(0 0 0 / 0.5),
    rgb(0 0 0 / 0.18) 72%,
    transparent
  );
  content: "";
  opacity: 0;
}

.news-card__public-header--photo::after {
  opacity: 1;
}

.news-card__public-header-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 350ms ease;
}

.news-card--public:hover .news-card__public-header-photo,
.news-card--public:focus-visible .news-card__public-header-photo {
  transform: scale(1.025);
}

.news-card__public-avatar {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgb(7 123 58 / 0.12);
  border-radius: 0.8rem;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 5px 14px rgb(16 35 26 / 0.07);
}

.news-card__public-avatar--fallback {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #123e2c, #08763d);
  font-size: 1rem;
  font-weight: 800;
}

.news-card__public-identity {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-width: 0;
}

.news-card__public-author {
  display: block;
  margin: 0;
  overflow: hidden;
  color: #10231a;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card__public-header--light-ink .news-card__public-author {
  color: #fff;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.3);
}

a.news-card__public-author:hover {
  color: currentcolor;
  text-decoration: underline;
}

.news-card__public-copy {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1.35rem 1.4rem 1.5rem;
  text-align: left;
}

.news-card__public-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #10231a;
  font-family: var(--ds-font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 750;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card__public-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: #5b6b63;
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card__public-excerpt p,
.news-card__public-excerpt ul,
.news-card__public-excerpt ol {
  display: inline;
  margin: 0;
  padding: 0;
}

.news-card__public-more {
  align-self: end;
  margin-top: auto;
  color: #067b3a;
  font-size: 0.82rem;
  font-weight: 750;
}

.news-card__public-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.8rem;
  padding: 0.55rem 1.15rem;
  color: #5c5d7b;
  font-size: 0.82rem;
  background: #fbfbfc;
}

.news-card__public-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.news-card__public-meta svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .news-card--public {
    min-height: 19rem;
    border-radius: 1.15rem;
  }
}
