/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* --- Public News Page (ADR 0011) ----------------------------------------- */

:root {
  --news-bg: #0f1115;
  --news-card: #1a1d24;
  --news-text: #e7e9ee;
  --news-muted: #9aa0ac;
  --news-border: #272b34;
  /* Per-product chrome. Approximate brand colours — tune to match the apps. */
  --product-solo: #34c759;
  --product-resolve: #5e5ce6;
  --product-trio: #8e8e93;
}

body {
  margin: 0;
  background: var(--news-bg);
  color: var(--news-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.news-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.news-page > h1 {
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
}

.news-card {
  background: var(--news-card);
  border: 1px solid var(--news-border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.news-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.news-product {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  background: var(--product-trio);
  text-decoration: none;
}

/* Linked product tags (solo / resolve) keep the badge look, with a hover cue. */
a.news-product {
  transition: filter 0.15s ease;
}

a.news-product:hover {
  filter: brightness(1.12);
}

.news-product.product-solo { background: var(--product-solo); }
.news-product.product-resolve { background: var(--product-resolve); }
.news-product.product-trio { background: var(--product-trio); }

/* App-icon logo tags drop the pill chrome — the icon carries its own colour. */
.news-product.has-logo {
  background: none;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
}

.news-product-logo {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--news-muted);
}

.news-card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.news-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  display: block;
}

.news-body {
  color: var(--news-text);
}

.news-body p { margin: 0 0 0.6rem; }

.news-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--product-solo);
  font-weight: 600;
  text-decoration: none;
}

.news-link:hover { text-decoration: underline; }
