/* NewsEditor.razor: rides on UpdateLogEditor.css (.ulog-*); only what that editor lacks. */

/* Title and the two URLs need the card's full width. */
.news-field-wide {
  grid-column: 1 / -1;
}

.news-help {
  margin: 0 0 0.9rem;
  color: #6b7280;
  font-size: 0.8125rem;
}

/* Preview: roughly the web application's corner card (.jw-news), at its 340px width. */
.news-preview {
  width: 340px;
  max-width: 100%;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  box-shadow: 0 12px 32px rgba(16, 24, 32, 0.12);
  background: #fff;
  overflow: hidden;
}
.news-preview-image {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid #e5e7eb;
}
.news-preview-noimage {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.news-preview-body {
  padding: 0.85rem 1rem 1rem;
}
.news-preview-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a65b00;
}
.news-preview-text {
  margin-top: 0.5rem;
  color: #4b5563;
  font-size: 0.8125rem;
}
.news-preview-title {
  margin: 0.15rem 0 0.75rem;
  color: #111827;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.news-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #a65b00;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

/* Long titles in the posts list wrap instead of pushing the status column out. */
.news-title-cell {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* How to get an image into the card: the editor cannot upload one. */
.news-image-help {
  margin-top: -0.35rem;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.8125rem;
}
.news-image-help ul {
  margin: 0.35rem 0;
  padding-left: 1.1rem;
}
.news-image-help li {
  margin-bottom: 0.25rem;
}
.news-image-help code {
  padding: 0 0.25rem;
  border-radius: 4px;
  background: #eef2f7;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

/* Draft | Publish: a two-option segmented control, the height of a .ulog-input. */
.news-status {
  display: inline-flex;
  height: 2.25rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
}
.news-status-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.85rem;
  border: 0;
  background: #fff;
  color: #374151;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.news-status-option + .news-status-option {
  border-left: 1px solid #d1d5db;
}
.news-status-option:hover {
  background: #f3f4f6;
}
.news-status-option.news-status-active {
  background: #2563eb;
  color: #fff;
}

/* Scheduled: published, but its time has not come yet. */
.news-pill-scheduled {
  background: #dbeafe;
  color: #1e40af;
}

/* 24-hour time as plain text ("14:30"): a native time picker shows AM/PM on English browsers. */
.ulog-input.news-time {
  font-variant-numeric: tabular-nums;
}
.ulog-input.news-time-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}
