/* ── Research news (2026-10-12): /home block + /actualites page ──
   Same card language as Accueil: white cards, gold diamond, green links.
   Markup: js/news.js. */

.nw-list { display: flex; flex-direction: column; gap: 10px; }
.nw-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; background: #fff; border: 1px solid #e4e6e3;
  scroll-margin-top: 16px;
}
.nw-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; min-width: 0; flex: 1; }
/* Topic illustration: a banner on /actualites. Journal (mockup C, 2026-10-13):
   a drawn cover + name in a gold strip at the bottom of the card on
   /actualites, the cover alone on the left of the compact cards on /home. */
.nw-img { display: block; width: 100%; height: 112px; object-fit: cover; background: var(--z-primary); }
.nw-cover {
  flex: none; width: 40px; height: 54px; border-radius: 4px; background: #fff;
  border: 1px solid #d9cfb8; box-shadow: 2px 2px 0 #e3d3b0;
  display: flex; flex-direction: column; justify-content: space-between; padding: 5px 4px;
  font: 700 9px/1.1 Georgia, 'Times New Roman', serif; color: #2e3235; text-align: center; overflow: hidden;
}
.nw-cover::before { content: ''; height: 3px; border-radius: 1px; background: var(--z-primary, #3f5e4f); }
.nw-cover::after {
  content: ''; height: 13px;
  background: linear-gradient(#e8e4da 0 2px, transparent 2px 5px, #e8e4da 5px 7px, transparent 7px 10px, #e8e4da 10px 12px, transparent 0);
}
.nw-journal {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px;
  background: #faf5ea; border-top: 1px solid #e3d3b0;
}
.nw-journal b { display: block; font-size: 14px; color: #2e3235; }
.nw-journal small { display: block; font-size: 12px; color: #7a6236; }
.nw-card--short { flex-direction: row; }
.nw-card--short > .nw-cover {
  width: 58px; height: 78px; margin: 14px 0 14px 14px; align-self: center;
  font-size: 11px; padding: 7px 5px;
}
.nw-card--short .nw-body { padding: 12px 14px; }
.nw-card.is-target { border-color: #b8975a; box-shadow: 0 0 0 3px #b8975a33; }
.nw-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin: 0; font-size: 12px; }
.nw-topic {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--z-primary);
}
.nw-topic::before { content: ''; width: 6px; height: 6px; background: #b8975a; transform: rotate(45deg); }
.nw-type { flex-basis: 100%; color: #5f6467; }
.tab-page h3.nw-title { margin: 0; font-size: 16px; line-height: 1.3; color: #2e3235; }
.nw-sum { margin: 0; font-size: 14px; line-height: 1.5; color: #2e3235; }
.nw-src { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 0 0; font-size: 12px; color: #5f6467; }
.nw-src a { flex: none; font-weight: 700; color: var(--z-primary); text-decoration: none; }
.nw-src a::after { content: ' ›'; }
/* Accueil cards: the whole card opens the study (owner, 2026-10-27: « sans
   cliquer sur lire »). « Lire › » stays as the cue; its ::before covers the card. */
.nw-card--short { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nw-card--short .nw-src a::before { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.nw-card--short:active { background: #f6f7f5; }

/* /actualites */
/* Back arrow in the page flow (top left, above the title): absolute positioning
   landed on the intro text in the installed app (safe-area padding). */
.nw-page .tp-back { position: static; align-self: flex-start; margin: -8px 0 -6px -10px; }
.tab-page.nw-page h1 { text-align: center; margin: 4px 0 0; padding: 0 40px; font-size: 24px; line-height: 1.2; }
.nw-intro { margin: 0; font-size: 14px; line-height: 1.5; color: #5f6467; text-align: center; }
.nw-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.nw-chips::-webkit-scrollbar { display: none; }
.nw-chip {
  flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid #d7e5de;
  background: #fff; color: var(--z-primary); font-size: 13px; font-weight: 600; cursor: pointer;
}
.nw-chip[aria-pressed="true"] { background: var(--z-primary); border-color: var(--z-primary); color: #fff; }
.nw-note {
  margin: 4px 0 0; padding: 12px 14px; border-radius: 14px; background: #faf5ea;
  border: 1px solid #e3d3b0; font-size: 13px; line-height: 1.5; color: #5f4c2a;
}
.hm-section.hidden { display: none; }

/* Weekly history on /actualites (2026-10-13): one section per week of
   publication on Zenoa, newest first; past weeks stay as an archive. */
.nw-week { display: flex; flex-direction: column; gap: 10px; }
.nw-week + .nw-week { margin-top: 14px; }
.tab-page h2.nw-week-h {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 4px 2px 0;
  font-size: 15px; font-weight: 700; color: #2e3235;
}
.nw-week-h small { flex-basis: 100%; font-size: 12px; font-weight: 400; color: #5f6467; }
.nw-new {
  padding: 1px 8px; border-radius: 999px; background: #faf5ea; border: 1px solid #e3d3b0;
  font-size: 11px; font-weight: 700; color: #7a6236;
}
