/* Every selector scoped under .news-screen to override the older single-class .news-* rules in public-pages.css (loads first). */
.news-screen {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-screen .news-tabs {
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--divider);
}
.news-screen .news-tab {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
}
.news-screen .news-tab:hover { color: var(--ink); }
.news-screen .news-tab.is-active {
  color: var(--bronze-2);
  border-bottom-color: var(--bronze-2);
}

.news-screen .news-feature {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--bronze) 45%, var(--border));
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.news-screen .news-feature-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--bronze) 22%, transparent), transparent 70%),
    var(--bg-2);
  border-right: 1px solid var(--border);
}
.news-screen .news-feature-art-ico {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-bronze);
  background: var(--bronze-gradient);
  border: 1px solid var(--bronze-deep);
  border-radius: 50%;
  box-shadow: var(--shadow-1);
}
.news-screen .news-feature-art-ico svg { width: 40px; height: 40px; }
.news-screen .news-feature-body { padding: 22px 26px; }
.news-screen .news-feature-tag { margin-bottom: 10px; }
.news-screen .news-pinned-pin {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bronze-2);
  background: color-mix(in srgb, var(--bronze) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--bronze) 40%, transparent);
}
.news-screen .news-feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 0.7rem + 1.33vw, 1.7rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
}
.news-screen .news-feature-excerpt {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.6;
}
.news-screen .news-feature-meta,
.news-screen .news-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--ink-3);
  font-size: 0.82rem;
}
.news-screen .news-feature-meta .mono,
.news-screen .news-post-meta .mono { color: var(--ink-2); }
.news-screen .news-dot { color: var(--ink-4); }
.news-screen .news-read-btn { margin-top: 4px; }

/* Two shells: `.app-content > .screen` is display:block, a bare `.screen` is a CENTRING flex
   column — so align-self alone is inert in one and width alone would be centred in the other.
   Both are needed to keep the lone action left-aligned with the cards in each. */
.news-screen .news-subscribe-btn {
  align-self: flex-start;
  width: fit-content;
  padding: 9px 20px;
  font-size: 0.88rem;
  /* Clear of the list beneath it, which it otherwise sat on top of and read as its header.
     14 + the public shell's 18px flex gap = 32. */
  margin-bottom: 14px;
}
/* The app shell spaces children with margins, not a gap, and `> * + *` never reaches .news-list
   (news.css zeroes its margin) — so here the button's own margin IS the whole gap. Same 32px. */
.app-content > .screen.news-screen .news-subscribe-btn { margin-bottom: 32px; }

.news-screen .news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-screen .news-post {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 16px 18px;
  transition: border-color 0.12s, background 0.12s;
}
.news-screen .news-post:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}
.news-screen .news-post-ico {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bronze-2);
  background: linear-gradient(135deg, var(--bronze-deep), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  align-self: start;
}
.news-screen .news-post-ico { font-size: 1.4rem; }   /* glyph fallback when no svg */
.news-screen .news-post-ico svg { width: 24px; height: 24px; }
.news-screen .news-post-body { min-width: 0; }
.news-screen .news-post-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze-2);
  margin-bottom: 3px;
}
.news-screen .news-post-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 5px;
}
.news-screen .news-post-excerpt {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.55;
}
.news-screen .news-empty {
  list-style: none;
  padding: 40px 16px;
  text-align: center;
  color: var(--ink-3);
  background: transparent;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-l);
}

/* flex-start, not space-between: the row is shell-wide, so space-between would strand the
   buttons far from the copy, by a distance that changes with the signed-in state. Capping the
   copy keeps the pair adjacent at every width. No horizontal padding, so the block starts on
   the same left edge as the cards above it. */
.news-screen .news-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 6px;
  padding: 16px 0 28px;
}
.news-screen .news-foot > :first-child { flex: 0 1 auto; min-width: 0; max-width: 56ch; }
.news-screen .news-foot-copy { font-size: 0.86rem; margin-top: 4px; }
.news-screen .news-foot-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }

@media (max-width: 900px) {
  .news-screen .news-feature {
    grid-template-columns: 1fr;
  }
  .news-screen .news-feature-art {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 22px;
  }
  .news-screen .news-feature-art-ico { width: 64px; height: 64px; }
  .news-screen .news-feature-art-ico svg { width: 30px; height: 30px; }
}

@media (max-width: 640px) {
  .news-screen { gap: 14px; }
  .news-screen .news-tab { padding: 10px 12px; }
  .news-screen .news-post {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .news-screen .news-post-ico { display: none; }
  /* Full width on a phone, where a content-width chip is an awkward target. `width`, not
     align-self: the app shell makes this parent display:block. */
  .news-screen .news-subscribe-btn { width: 100%; align-self: stretch; justify-content: center; }
  .news-screen .news-foot { align-items: flex-start; }
}

.news-screen .news-open { cursor: pointer; }
.news-screen .news-feature-title.news-open:hover { color: var(--bronze-2); }
.news-screen .news-post.news-open:focus-visible,
.news-screen .news-feature-title.news-open:focus-visible {
  outline: 2px solid var(--bronze-2); outline-offset: 2px; border-radius: var(--radius-s);
}

.news-screen .news-article { display: flex; flex-direction: column; }
.news-screen .news-article-back { align-self: flex-start; margin-bottom: 18px; }
.news-screen .news-article-head {
  border-bottom: 1px solid var(--divider);
  padding-bottom: 18px; margin-bottom: 20px;
}
.news-screen .news-article-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2; color: var(--ink);
  margin: 8px 0 12px;
}
.news-screen .news-article-body {
  color: var(--ink-2); font-size: 1.02rem; line-height: 1.7;
}
.news-screen .news-article-body p { margin: 0 0 16px; }
.news-screen .news-article-body ul { margin: 0 0 16px; padding-left: 22px; }
.news-screen .news-article-body li { margin-bottom: 8px; }
.news-screen .news-article-body strong { color: var(--ink); }
