/* News and notes: the public /news list and post, and the officers' writing
   desk at /officers/news. Palette from neon.css's --neon-* tokens, so
   all four themes carry through. No link is underlined in any state —
   DUH/rules/presentation.md. */

.news-intro,
.news-filter,
.news-meta {
  color: var(--neon-ink-dim);
}

.news-filter {
  margin: 0 0 1.5rem;
}

.news-item {
  padding: 0.9rem 0;
  border-top: 1px solid var(--neon-frame);
}

.news-item h2 {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
}

.news-item p {
  margin: 0.3rem 0 0;
}

.news-meta {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
}

.news-kind {
  display: inline-block;
  padding: 0 0.45rem;
  border-radius: 4px;
  background: var(--neon-ground);
  color: var(--neon-ink);
  font-weight: 600;
}

.news-kind--note {
  background: var(--neon-ground);
  border: 1px solid var(--neon-frame);
}

.news-body img {
  max-width: 100%;
  height: auto;
}

.news-back {
  margin-top: 2rem;
}

.news a,
.news-admin a {
  text-decoration: none;
}

.news-empty {
  font-style: italic;
  color: var(--neon-ink-dim);
}

/* ---- the officers' desk ---- */

.news-flash {
  padding: 0.5rem 0.75rem;
  border-left: 4px solid var(--neon-tube);
  background: var(--neon-ground);
}

.news-flash--bad {
  font-weight: 600;
}

.news-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
}

.news-table th,
.news-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--neon-frame);
  text-align: left;
  vertical-align: top;
}

.news-inline {
  display: inline;
}

.news-form label {
  display: block;
  font-weight: 600;
}

.news-form input,
.news-form select,
.news-form textarea {
  width: 100%;
  max-width: 48rem;
  padding: 0.4rem;
  border: 1px solid var(--neon-frame);
  border-radius: 4px;
  background: var(--neon-ground);
  color: var(--neon-ink);
  font: inherit;
}

.news-form__pair select,
.news-form__pair input {
  max-width: 14rem;
  margin-bottom: 0.5rem;
}

.news-form button {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--neon-frame);
  border-radius: 4px;
  background: var(--neon-ground);
  color: var(--neon-ink);
  font: inherit;
  cursor: pointer;
}

.news-form .news-btn--go {
  background: var(--neon-ground);
  border-color: var(--neon-tube);
  color: var(--neon-tube);
}

/* On a phone the table becomes cards, like the rest of the floor. */
@media (max-width: 640px) {
  .news-table thead {
    display: none;
  }

  .news-table tr {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neon-frame);
  }

  .news-table td {
    display: block;
    border: 0;
    padding: 0.15rem 0;
  }
}
