/* 短報ストリーム（/news/stream/）
 * 読む場所なので、白地に細い線だけで区切る。影・blur・装飾は使わない。 */

.news-stream-wrap {
  max-width: 44rem;
}

/* 説明文と保存の注意は畳んでおく（2026-11-21）。スマホの1画面目に短報を出すため。 */
.news-stream-about {
  margin: 0.75rem 0 0;
  color: var(--news-muted);
  font-size: 0.88rem;
}

.news-stream-about > summary {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  min-height: 2.75rem;
  cursor: pointer;
}

.news-stream-about > summary::-webkit-details-marker {
  display: none;
}

.news-stream-about > summary::before {
  content: "▸";
  font-size: 0.8em;
}

.news-stream-about[open] > summary::before {
  content: "▾";
}

.news-stream-about .news-timeline-note {
  margin: 0.4rem 0 0;
}

.news-stream-lead {
  margin: 0.25rem 0 0;
  color: var(--news-muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

.news-stream-notice,
.news-stream-more {
  margin: 1.5rem 0 0;
  color: var(--news-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.news-stream-empty {
  margin: 2rem 0 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--news-line);
  color: var(--news-muted);
  line-height: 1.9;
}

.news-stream-empty a {
  color: var(--news-green);
}

.news-stream-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--news-line);
}

.news-stream-item {
  padding: 1.35rem 0 1.5rem;
  border-bottom: 1px solid var(--news-line);
  scroll-margin-top: 5rem;
}

.news-stream-item:target {
  background: var(--news-panel);
  box-shadow: 0 0 0 0.75rem var(--news-panel);
}

.news-stream-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0;
  color: var(--news-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.news-stream-desk {
  color: var(--news-green);
  font-weight: 650;
}

.news-stream-headline {
  margin: 0.4rem 0 0;
  color: var(--news-ink);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.news-stream-body {
  margin: 0.6rem 0 0;
  color: var(--news-ink);
  font-size: 0.97rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.news-stream-sources {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.7;
}

.news-stream-sources-label {
  margin-right: 0.6rem;
  color: var(--news-muted);
}

.news-stream-sources ul {
  display: inline;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-stream-sources li {
  display: inline;
  margin-right: 0.75rem;
}

.news-stream-sources a,
.news-stream-article a {
  display: inline-block;
  min-height: 1.5rem;
  color: var(--news-green);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.news-stream-article {
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  font-weight: 650;
}

.news-stream-article a::after {
  content: " →";
}

@media (min-width: 48rem) {
  .news-stream-headline {
    font-size: 1.22rem;
  }
}

/* display を指定した要素でも hidden を効かせる（news-editorial.css の [hidden] は本番で読み込まれない）。 */
.news-timeline-bar[hidden],
.news-timeline-filter[hidden],
.news-stream-pinned[hidden],
.news-stream-divider[hidden],
.news-stream-item[hidden] {
  display: none;
}

/* タイムライン（2026-11-11 案A）。ゆずふかちゃんのアイコンの表情で「どう受け取ればいい話か」を先に見せる。
 * 既読・「あとで見る」のボタンと未読の数は stream-catchup.js が足す。影・blur は使わず、線と淡い面だけで分ける。 */

.news-stream-post {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.news-stream-main {
  flex: 1;
  min-width: 0;
}

.news-stream-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.55rem 0 0 -0.6rem;
}

.news-stream-actions > span {
  display: contents;
}

.news-stream-act {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--news-muted);
  font: inherit;
  font-size: 0.84rem;
  text-decoration: none;
  cursor: pointer;
}

.news-stream-act:hover {
  background: var(--news-green-soft, #f3f1e9);
}

.news-stream-act:focus-visible,
.news-timeline-filter:focus-visible {
  outline: 2px solid var(--news-green);
  outline-offset: 2px;
}

.news-stream-act-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.news-stream-like svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.news-stream-like[aria-pressed="true"] {
  color: #6f5106;
  font-weight: 700;
}

.news-stream-like[aria-pressed="true"] svg {
  fill: currentColor;
}

.news-stream-read[aria-pressed="true"] {
  background: #e3eee7;
  color: #24513f;
  font-weight: 700;
}

.news-stream-item.is-read .news-stream-headline,
.news-stream-item.is-read .news-stream-body {
  color: var(--news-muted);
}

.news-stream-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--news-line);
  color: #8f2c45;
  font-size: 0.78rem;
  font-weight: 700;
}

.news-stream-divider::before,
.news-stream-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.news-stream-divider.is-older {
  color: var(--news-muted);
}

.news-timeline-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 0;
}

.news-timeline-count {
  margin: 0;
  color: var(--news-muted);
  font-size: 0.88rem;
}

.news-timeline-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--news-muted);
  font-size: 0.76rem;
}

.news-timeline-filter {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--news-line);
  border-radius: 999px;
  background: transparent;
  color: var(--news-ink);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.news-timeline-filter[aria-pressed="true"] {
  border-color: var(--news-green);
  background: var(--news-green);
  color: var(--news-panel);
}

.news-stream-pinned {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px solid var(--news-line);
  border-radius: 6px;
  background: #eef4ef;
}

/* 固定の「今日を閉じる」は2行に畳み、まとめへのリンクを別の行に出す（2026-11-21、スマホの1画面目に短報を出すため）。 */
.news-stream-pinned-intro {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.news-stream-pinned-link {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}

.news-stream-pinned-link a {
  color: var(--news-green);
}

.news-stream-pin {
  margin: 0;
  color: #24513f;
  font-size: 0.72rem;
  font-weight: 700;
}

.news-timeline-bar + .news-stream-pinned + .news-stream-list,
.news-timeline-bar + .news-stream-list {
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .news-stream-act {
    transition: none;
  }
}

/* ── 話題の絞り込み（YUZ-501）。最初は「すべて」。0件のときは「すべての短報を見る」で戻る。 */
.news-topic-switch { display: flex; flex-wrap: wrap; gap: 0.4rem; flex-basis: 100%; }
.news-topic-chip { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; padding: 0 0.95rem; border: 1px solid var(--news-line); border-radius: 999px; background: transparent; color: var(--news-ink); font: inherit; font-size: 0.9rem; cursor: pointer; }
.news-topic-chip[aria-pressed="true"] { border-color: var(--news-green); background: var(--news-green); color: var(--news-panel); }
.news-topic-chip:focus-visible { outline: 2px solid var(--news-green); outline-offset: 2px; }
.news-topic-dot { display: inline-block; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.news-topic-chip--life .news-topic-dot { background: #2f6b4f; }
.news-topic-chip--safety .news-topic-dot { background: #b98610; }
.news-topic-chip--ai .news-topic-dot { background: #2f6286; }
.news-stream-topic-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1rem; margin: 1rem 0; padding: 1rem; border: 1px dashed var(--news-line); border-radius: 8px; text-align: center; }
.news-stream-topic-empty[hidden] { display: none; }

/* 本文を3行で畳む（2026-11-21）。畳んでいる間は、出典・記事へのリンクを隠す。ひとことは出したまま（Kazuya「代案で」）。 */
.news-stream-item.is-folded .news-stream-body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.news-stream-item.is-folded :is(.news-stream-sources, .news-stream-article) {
  display: none;
}

.news-stream-fold {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--news-green, #24513f);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
