.company-news-editor,
.company-mobile-cover-editor,
.company-news-list {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.company-mobile-cover-editor__layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: var(--fs-space-4);
  align-items: start;
}

.company-mobile-cover-editor__preview {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--fs-radius-md);
}

.company-mobile-cover-editor__preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 32%,
    color-mix(in srgb, var(--fs-color-text) 88%, transparent) 100%
  );
  content: "";
}

.company-mobile-cover-editor__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-mobile-cover-editor__preview figcaption {
  position: absolute;
  z-index: 1;
  right: var(--fs-space-4);
  bottom: var(--fs-space-4);
  left: var(--fs-space-4);
  display: grid;
  gap: var(--fs-space-1);
  color: var(--fs-color-surface);
}

.company-mobile-cover-editor__preview figcaption strong {
  font-size: var(--fs-text-xl);
}

.company-mobile-cover-editor__preview figcaption span {
  font-size: var(--fs-text-sm);
}

.company-mobile-cover-editor form {
  display: grid;
  gap: var(--fs-space-3);
}

.company-news-editor__intro {
  display: grid;
  gap: 4px;
}

.company-news-editor__intro > span,
.company-news-list > header > span {
  color: var(--fs-color-text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-news-editor__intro h2,
.company-news-editor__intro p {
  margin: 0;
}

.company-news-editor__intro p {
  color: var(--fs-color-text-secondary);
}

.company-news-editor form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.company-news-editor__body {
  grid-column: 1 / -1;
}

.company-news-editor textarea {
  width: 100%;
  padding: 10px 12px;
  resize: vertical;
  color: var(--fs-color-text);
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border);
  border-radius: var(--fs-radius-sm);
  font: inherit;
}

.company-news-editor__published {
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-news-editor__published input {
  width: 18px;
  height: 18px;
  accent-color: var(--fs-color-primary);
}

.company-news-editor__actions {
  display: flex;
  justify-content: flex-end;
}

.company-news-list > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.company-news-list__items {
  display: grid;
  gap: 10px;
}

.company-news-list__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--fs-color-surface-subtle);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-md);
}

.company-news-list__item > img {
  width: 120px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--fs-radius-sm);
}

.company-news-list__item > div {
  display: grid;
  gap: 4px;
}

.company-news-list__item p {
  margin: 0;
  color: var(--fs-color-text-secondary);
}

.company-news-list__item small {
  color: var(--fs-color-primary-text);
}

@media (max-width: 720px) {
  .company-news-editor form,
  .company-mobile-cover-editor__layout,
  .company-news-list__item {
    grid-template-columns: 1fr;
  }

  .company-news-list__item > img {
    width: 100%;
    height: auto;
    max-height: 220px;
  }
}
