/* News SC */

/* ---- News SC */
.news-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: -.2rem 0 1rem; }
.news-tabs a { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text);
  background: var(--panel); font-weight: 600; }
.news-tabs a.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
.news-filter { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .8rem; }
.news-filter input[type=search] { flex: 1 1 14rem; max-width: 26rem; }
.news-list { display: grid; gap: .6rem; margin-bottom: 1rem; }
.news-item { position: relative; display: flex; gap: .8rem; padding: .7rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); }
.news-item.official { border-left: 3px solid var(--accent); }
.news-img { flex: 0 0 140px; width: 140px; height: 80px; object-fit: cover; border-radius: 6px; background: #0b2350; }
.news-img.ph { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--accent); }
.news-body { min-width: 0; flex: 1; }
.news-body h3 { margin: 0 0 .2rem; font-size: 1rem; line-height: 1.3; padding-right: 3.5rem; }
.news-body h3 a { color: var(--text); text-decoration: none; }
.news-body h3 a:hover { color: var(--accent); }
.news-meta { margin: 0 0 .3rem; }
.news-summary { margin: 0; font-size: .9rem; color: color-mix(in srgb, var(--text) 85%, transparent); }
.news-hide { position: absolute; top: .4rem; right: .5rem; }
.badge.official { border-color: var(--accent); color: var(--accent); }
.badge.new { border-color: #4cc38a; color: #4cc38a; font-size: .68rem; vertical-align: middle; }
@media (max-width: 600px) { .news-img { flex-basis: 84px; width: 84px; height: 56px; } .news-summary { display: none; } }
.leak-warning { margin: 0 0 .8rem; padding: .55rem .8rem; border-radius: 8px; border: 1px solid #b66ee8;
  background: color-mix(in srgb, #b66ee8 12%, transparent); font-size: .9rem; }
.pager { display: flex; gap: 1rem; justify-content: center; align-items: center; margin: .5rem 0 1rem; }
.patch-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1rem; align-items: start; }
.patch-list { position: sticky; top: 4.5rem; max-height: calc(100vh - 6rem); overflow: auto; }
.patch-list h3 { margin-top: 0; }
.patch-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.patch-list a { display: flex; justify-content: space-between; gap: .4rem; padding: .35rem .5rem; border-radius: 6px; text-decoration: none; color: var(--text); }
.patch-list a:hover { background: var(--panel-2); }
.patch-list a.on { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.patch-select-label { display: none; }
@media (max-width: 900px) {
  .patch-layout { grid-template-columns: 1fr; }
  .patch-list { position: static; max-height: none; }
  .patch-list ul, .patch-list h3 { display: none; }
  .patch-select-label { display: flex; gap: .5rem; align-items: center; }
  .patch-select-label select { flex: 1; }
}
.rich { line-height: 1.6; overflow-wrap: anywhere; }
.rich h3, .rich h4 { margin: 1.3rem 0 .4rem; }
.rich ul, .rich ol { padding-left: 1.4rem; }
.rich li { margin: .15rem 0; }
.rich img { max-width: 100%; height: auto; border-radius: 6px; }
.rich table { border-collapse: collapse; display: block; overflow-x: auto; }
.rich a { overflow-wrap: anywhere; }
.news-hero { width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; margin: .4rem 0 1rem; }

/* Patch notes : mise en forme du texte complet */
.rich-doc .rich { font-size: .95rem; }
.rich-doc .rich h3 { margin: 1.6rem 0 .5rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); color: var(--accent); font-size: 1.15rem; }
.rich-doc .rich h4 { margin: 1.1rem 0 .35rem; font-size: 1rem; }
.rich-doc .rich h5, .rich-doc .rich h6 { margin: .9rem 0 .3rem; font-size: .92rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.rich-doc .rich ul { list-style: disc; padding-left: 1.4rem; margin: .3rem 0 .7rem; }
.rich-doc .rich ul ul { list-style: circle; margin: .15rem 0 .25rem; color: color-mix(in srgb, var(--text) 82%, transparent); }
.rich-doc .rich ul ul ul { list-style: square; }
.rich-doc .rich li { margin: .2rem 0; line-height: 1.5; }
.rich-doc .rich p { margin: .5rem 0; }
.rich-doc .rich code { background: var(--panel-2); padding: .05rem .3rem; border-radius: 4px; }
.rich-doc .rich blockquote { margin: .6rem 0; padding: .4rem .8rem; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 0 6px 6px 0; }
.rich-doc .rich table { margin: .6rem 0; }
.rich-doc .rich th, .rich-doc .rich td { border: 1px solid var(--line); padding: .3rem .5rem; }
.patch-version { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; border-radius: 999px; border: 1px solid var(--accent);
  color: var(--accent); font-size: .78rem; vertical-align: middle; }
.patch-toc { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: .4rem 0 1rem; }
.patch-toc a { font-size: .82rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.patch-toc a:hover { border-color: var(--accent); color: var(--accent); }

/* Leaks venus de Discord */
.discord-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; margin-top: 1rem; }
.discord-imgs img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; display: block; }
.rich .spoiler { background: var(--line); color: transparent; border-radius: 3px; cursor: pointer; transition: color .15s; }
.rich .spoiler:hover, .rich .spoiler:focus { color: inherit; background: var(--panel2); }
.rich pre { background: var(--panel2); padding: .6rem .8rem; border-radius: 6px; overflow-x: auto; }
.rich blockquote { margin: .5rem 0; padding-left: .8rem; border-left: 3px solid var(--line); }
.discord-setup form label { display: block; margin: 0 0 .9rem; font-weight: 600; }
.discord-setup form label input { display: block; width: 100%; margin: .3rem 0 .2rem; font-weight: 400; }
.discord-setup form label .small { font-weight: 400; }
.setup-steps li { margin: .5rem 0; line-height: 1.55; }
.setup-steps ul { margin: .3rem 0; }
