/* yotta.bot/news: loads after /careers/careers.css, whose page, controls,
 * column names and article type it shares. */

/* Careers has a line of text between its title and controls; News goes
   straight to them. */
body[data-page="news"] .careers h1 { margin-bottom: 32px; }

.news-head,
.news-row {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr) 112px 96px;
}
.news-row {
  display: grid;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}
.news-row:hover { color: var(--text); }
.news-row[hidden] { display: none; }
.news-title { font-size: 16px; line-height: 24px; font-weight: 600; }
.news-row:hover .news-title { text-decoration: underline; text-underline-offset: 3px; }
.news-description,
.news-category,
.news-date { color: var(--text2); padding-top: 2px; }

/* Careers draws a divider after its two named columns; every column here is
   named. */
.news-head > span:nth-child(3)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: -1px;
  bottom: -1px;
  width: 1px;
  background: var(--border-strong);
}

/* ── An article ─────────────────────────────────────────────────── */
.news-article h1 { margin-bottom: 12px; }
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text2);
}
.news-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.news-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  margin: 24px 0;
}
.news-body h3 { font-size: 20px; line-height: 28px; }
.news-body blockquote {
  margin: 20px 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--border-strong);
  color: var(--text2);
}
.news-body hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.news-body code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface);
}
.news-body pre {
  overflow-x: auto;
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: var(--surface);
}
.news-body pre code { padding: 0; background: none; }
.news-body table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.news-body th,
.news-body td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.news-body th { font-size: 12px; font-weight: 700; }

@media (max-width: 800px) {
  .news-row { grid-template-columns: auto 1fr; gap: 4px 12px; }
  .news-title,
  .news-description { grid-column: 1 / -1; }
}
