/* News reader. Colors come from usl-theme.css so light and dark follow the site. */
.news-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}
.news-head h1 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--usl-heading);
  font-size: 1.8rem;
  margin: 8px 0 4px;
}
.news-head h1 span { color: var(--usl-accent); }
.news-lede {
  color: var(--usl-muted);
  margin: 0 0 16px;
  max-width: 46rem;
}
.news-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
html[data-usl-font-up] .news-layout {
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
}
.news-side {
  background: var(--usl-surface);
  border: 1px solid var(--usl-border);
  border-radius: 12px;
  padding: 10px;
  position: sticky;
  top: var(--usl-nav-offset, 10px);
}
.news-side h2 {
  font-size: 0.78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--usl-muted);
  margin: 12px 8px 6px;
}
.news-nav-btn, .news-add button, .news-tool button, .news-more button {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}
.news-nav-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
  background: transparent;
  color: var(--usl-heading);
  border: 0;
  border-radius: 8px;
  padding: 7px 8px;
  cursor: pointer;
}
.news-nav-btn:hover, .news-nav-btn:focus { background: var(--usl-surface-2); outline: none; }
.news-nav-btn[aria-current="true"] {
  background: var(--usl-surface-2);
  box-shadow: inset 3px 0 0 var(--usl-accent);
}
.news-count { color: var(--usl-muted); font-size: .85rem; }
.news-my-item { display: flex; gap: 4px; align-items: center; }
.news-my-item .news-nav-btn { flex: 1; }
.news-remove {
  border: 0;
  background: transparent;
  color: var(--usl-muted);
  cursor: pointer;
  padding: 4px 6px;
}
.news-add { margin-top: 8px; padding: 0 4px 6px; }
.news-add input, .news-search input {
  width: 100%;
  background: var(--usl-bg);
  color: var(--usl-text);
  border: 1px solid var(--usl-border-2);
  border-radius: 8px;
  padding: 7px 8px;
}
.news-add button, .news-tool button, .news-more button {
  margin-top: 6px;
  background: transparent;
  color: var(--usl-heading);
  border: 1px solid var(--usl-border-2);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}
.news-add button:hover, .news-tool button:hover, .news-more button:hover {
  background: var(--usl-surface-2);
}
.news-signin { color: var(--usl-muted); font-size: .88rem; margin: 8px; }
.news-signin a { color: var(--usl-accent); }
.news-main { min-width: 0; }
.news-tool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.news-search { flex: 1 1 180px; }
.news-search input { margin: 0; }
.news-tool button[aria-pressed="true"] {
  border-color: var(--usl-accent);
  color: var(--usl-accent);
}
.news-status { color: var(--usl-muted); min-height: 1.2em; margin: 0 0 8px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--usl-surface);
  border: 1px solid var(--usl-border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.news-card.is-read { opacity: .72; }
.news-card-hit {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  flex: 1;
}
.news-card-hit:hover, .news-card-hit:focus { color: inherit; text-decoration: none; }
.news-thumb {
  aspect-ratio: 16 / 9;
  background: var(--usl-surface-2);
  object-fit: cover;
  width: 100%;
  display: block;
}
.news-thumb.missing { display: none; }
.news-card-body { padding: 12px 12px 8px; }
.news-card h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--usl-heading);
  overflow-wrap: anywhere;
}
.news-excerpt {
  color: var(--usl-text);
  font-size: .92rem;
  line-height: 1.45;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.news-meta {
  color: var(--usl-muted);
  font-size: .78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.news-cat {
  border: 1px solid var(--usl-border-2);
  border-radius: 999px;
  padding: 0 6px;
}
.news-actions {
  display: flex;
  gap: 6px;
  padding: 0 12px 12px;
}
.news-actions button {
  background: transparent;
  color: var(--usl-muted);
  border: 1px solid var(--usl-border);
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  font-size: .85rem;
}
.news-actions button[aria-pressed="true"] { color: var(--usl-accent); border-color: var(--usl-accent); }
.news-more { margin-top: 14px; }
.news-empty { color: var(--usl-muted); padding: 12px 0; }
@media (max-width: 760px) {
  .news-layout,
  html[data-usl-font-up] .news-layout { grid-template-columns: 1fr; }
  .news-side { position: static; }
  .news-grid,
  html[data-usl-font-up] .news-grid { grid-template-columns: 1fr; }
}
