/* Anime news + weekly finds (/news, worker/news/render.ts). Sits on tools.css + blog.css; only what /news adds. No purple; no images (CSS only). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.news-wrap { display: grid; gap: 1.5rem; padding-bottom: 3rem; min-width: 0; }
.news-wrap > * { min-width: 0; }

/* the refresh panel */
.news-refresh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.news-refresh > div { flex: 1 1 16rem; min-width: 0; }
.news-refresh-title { font-weight: 800; margin: 0 0 0.25rem; }
.news-refresh .blog-muted { margin: 0; }
.news-refresh button { flex: 0 0 auto; min-height: 44px; }
.news-refresh button[disabled] { opacity: 0.6; cursor: progress; }

/* weekly finds feature */
.news-finds { padding: 1.4rem 1.4rem 1.2rem; }
.news-finds h2 { font-size: clamp(1.35rem, 4vw, 2rem); margin: 0 0 0.8rem; overflow-wrap: anywhere; }
.news-finds h2 a { text-decoration: none; }
.news-finds h2 a:hover { color: var(--mg-accent); }
.news-bulb { font-size: 1.05em; margin-right: 0.2rem; }
.news-finds-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.4rem; }
.news-finds-list li { overflow-wrap: anywhere; }
.news-finds-list a { font-weight: 800; }
.news-finds-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0; }
.news-more { font-weight: 800; color: var(--mg-accent); text-decoration: none; }
.news-more:hover { text-decoration: underline; }

/* the list */
.news-list { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.news-card { padding: 1.1rem 1.2rem; min-width: 0; }
.news-card .blog-chip { margin-bottom: 0.55rem; }
.news-title { font-size: 1.15rem; line-height: 1.3; margin: 0 0 0.5rem; overflow-wrap: anywhere; }
.news-title a { text-decoration: none; }
.news-title a:hover { color: var(--mg-accent); }
.news-summary { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.news-card .blog-meta { margin-top: 0.7rem; font-size: 0.85rem; }
.news-via { display: inline-flex; flex-wrap: wrap; gap: 0.2rem 0.45rem; align-items: center; }
.news-src { font-weight: 700; color: var(--mg-fg); }
.news-src:hover { color: var(--mg-accent); }
.news-note { max-width: 70ch; }
.news-h1 { font-size: clamp(1.7rem, 5vw, 2.8rem); overflow-wrap: anywhere; }

/* a weekly finds article */
.news-picks { display: grid; gap: 1.2rem; }
.news-pick { padding: 1.2rem 1.3rem; scroll-margin-top: 5rem; }
.news-facts { display: grid; gap: 0.35rem; margin: 0.9rem 0 0; }
.news-facts div { display: grid; grid-template-columns: minmax(6.5rem, max-content) minmax(0, 1fr); gap: 0.75rem; }
.news-facts dt { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mg-fg-soft); }
.news-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .news-facts div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; } }
.news-archive { list-style: none; padding: 0; display: grid; gap: 0.5rem; }

/* =====================================================================================================================
   The news hub (worker/news/hub-render.ts): one designed layout per route. Tokens come from tools.css; no purple, no images.
   ===================================================================================================================== */

/* ---------- shared: hero extras, section tabs, freshness ---------- */
.hub-hero .mg-wrap > * + * { margin-top: 0.9rem; }
.hub-hero .eyebrow { display: inline-block; }
.hub-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.hub-tabs a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.35rem 0.95rem; text-decoration: none; font-weight: 800; font-size: 0.9rem;
  border: 2px solid var(--mg-line); background: var(--mg-panel); color: var(--mg-fg);
  transition: transform 0.15s var(--mg-ease), background 0.15s var(--mg-ease);
}
.hub-tabs a:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--mg-line); }
.hub-tabs a[aria-current='page'] { background: var(--mg-accent); color: var(--mg-accent-ink); box-shadow: 3px 3px 0 var(--mg-line); }
.hub-fresh { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.9rem; color: var(--mg-fg-soft); }
.hub-pulse { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #2f8f5a; box-shadow: 0 0 0 0 rgba(47, 143, 90, 0.5); animation: hub-pulse 2.4s ease-out infinite; }
@keyframes hub-pulse { 70% { box-shadow: 0 0 0 0.55rem rgba(47, 143, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 143, 90, 0); } }
@media (prefers-reduced-motion: reduce) { .hub-pulse { animation: none; } .hub-tabs a, .mg-btn { transition: none; } }

/* ---------- shared: pick labels, platforms, sources ---------- */
.hub-tier {
  display: inline-block; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.55rem; border: 2px solid var(--mg-line);
}
.hub-tier--community { background: var(--mg-accent); color: var(--mg-accent-ink); }
.hub-tier--staff { background: transparent; color: var(--mg-fg); border-style: dashed; }
.hub-tier--gem { background: #d4a847; color: #101116; }
.hub-tier-n { opacity: 0.85; font-weight: 700; }
.hub-where { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; margin-top: 0.8rem; font-size: 0.88rem; }
.hub-where-label { font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mg-fg-soft); }
.hub-plat { font-weight: 800; font-size: 0.82rem; padding: 0.1rem 0.55rem; border: 2px solid var(--mg-line); text-decoration: none; background: var(--mg-panel); }
a.hub-plat:hover { background: var(--mg-accent); color: var(--mg-accent-ink); }
.hub-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.55rem; margin-top: 0.9rem; padding-top: 0.7rem; border-top: 2px dashed color-mix(in srgb, var(--mg-line) 35%, transparent); font-size: 0.85rem; }
.hub-credit-label { font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mg-fg-soft); flex: 1 0 100%; }
.hub-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 1rem 0 0; font-weight: 700; }
.hub-facts span { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mg-fg-soft); }
.hub-facts li { min-width: 0; overflow-wrap: anywhere; }
.hub-method { padding: 1.1rem 1.3rem; }
.hub-method h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; margin-bottom: 0.4rem; }
.hub-method p { max-width: 75ch; font-size: 0.95rem; }

/* ---------- /news: the explore band and the lead story ---------- */
.hub-tiles { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .hub-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hub-tile { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem; text-decoration: none; min-width: 0; box-shadow: 5px 5px 0 var(--mg-shadow); transition: transform 0.15s var(--mg-ease), box-shadow 0.15s var(--mg-ease); }
.hub-tile:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--mg-shadow); }
.hub-tile-n { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--mg-accent); }
.hub-tile-body { display: flex; flex-direction: column; min-width: 0; }
.hub-tile-body strong { font-size: 1rem; }
.hub-tile-body span { font-size: 0.85rem; font-weight: 700; color: var(--mg-fg-soft); }
.hub-tile-body small { font-size: 0.78rem; color: var(--mg-fg-soft); margin-top: 0.2rem; line-height: 1.3; }
.news-lead .news-card { padding: 1.4rem 1.5rem; }
.news-lead .news-title { font-size: clamp(1.35rem, 4vw, 1.9rem); }
.news-lead .news-summary { font-size: 1.05rem; }
.news-wrap h2.tl-heading, .news-wrap h2.mg-title { overflow-wrap: anywhere; }

/* ---------- /news/new: the timeline ---------- */
.tl-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin-top: 1rem; }
.tl-jump a { display: inline-flex; gap: 0.45rem; align-items: center; min-height: 2.75rem; padding: 0.3rem 0.9rem; border: 2px dashed var(--mg-line); text-decoration: none; font-weight: 800; font-size: 0.9rem; }
.tl-jump a span { background: var(--mg-fg); color: var(--mg-bg); padding: 0 0.45rem; font-size: 0.8rem; }
.tl-group { display: grid; gap: 0.6rem; scroll-margin-top: 5rem; }
.tl-heading { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.1; }
.tl-count { display: inline-block; vertical-align: middle; font-family: var(--font-sans); font-weight: 800; font-size: 0.8rem; padding: 0.05rem 0.5rem; background: var(--mg-fg); color: var(--mg-bg); }
.tl { list-style: none; display: grid; gap: 1.2rem; position: relative; margin-top: 0.6rem; padding-left: 0; }
.tl::before { content: ''; position: absolute; left: 3rem; top: 0.5rem; bottom: 0.5rem; width: 0; border-left: 3px dashed color-mix(in srgb, var(--mg-line) 45%, transparent); }
.tl-item { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.9rem; align-items: start; position: relative; scroll-margin-top: 5rem; }
.tl-chip {
  position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: 0; width: 6rem; min-height: 6rem; padding: 0.4rem;
  background: var(--mg-accent); color: var(--mg-accent-ink); border: 3px solid var(--mg-line); box-shadow: 4px 4px 0 var(--mg-line); text-align: center; line-height: 1;
}
.tl-mon { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.14em; }
.tl-day { font-family: var(--font-display); font-size: 2.3rem; line-height: 1.05; }
.tl-yr { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; }
.tl-chip--month .tl-mon { font-size: 1.4rem; letter-spacing: 0.08em; }
.tl-chip--year .tl-day { font-size: 1.7rem; }
.tl-chip--tba { background: transparent; color: var(--mg-fg); border-style: dashed; box-shadow: none; }
.tl-chip--tba .tl-mon { font-size: 1.4rem; }
.tl-card { padding: 1.1rem 1.25rem; min-width: 0; box-shadow: 5px 5px 0 var(--mg-shadow); }
.tl-card .news-title { margin-bottom: 0.35rem; }
.tl-when { font-weight: 700; margin-bottom: 0.6rem; }
.tl-when--tba { color: var(--mg-fg-soft); }
.tl-state { display: inline-block; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.1rem 0.5rem; margin-right: 0.35rem; border: 2px solid var(--mg-line); }
.tl-state--out { background: #2f8f5a; color: #fff; border-color: #2f8f5a; }
.tl-state--set { background: var(--mg-accent); color: var(--mg-accent-ink); }
.tl-state--rep { border-style: dashed; }
@media (max-width: 560px) {
  .tl::before { display: none; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .tl-chip { width: auto; min-height: 0; grid-auto-flow: column; justify-content: start; gap: 0.6rem; padding: 0.35rem 0.8rem; align-items: baseline; justify-self: start; }
  .tl-day { font-size: 1.5rem; }
  .tl-chip--month .tl-mon { font-size: 1rem; }
}

/* ---------- /news/gems: spotlight cards ---------- */
.gem-list { display: grid; gap: 2rem; }
.gem { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; scroll-margin-top: 5rem; }
.gem-cover { aspect-ratio: 16 / 9; border-bottom: 3px solid var(--mg-line); }
.gem .cover-words span { font-size: clamp(1.3rem, 9cqw, 3.4rem); }
.gem-body { padding: 1.3rem 1.4rem 1.4rem; min-width: 0; }
.gem-top { margin-bottom: 0.7rem; }
.gem-title { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: 0.3rem; }
.gem-alt { margin-bottom: 0.6rem; }
.gem-why { font-family: var(--font-sans); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mg-accent); margin: 0.9rem 0 0.35rem; }
.gem-spot { font-size: 1.08rem; line-height: 1.65; max-width: 62ch; }
@media (min-width: 860px) {
  .gem { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .gem--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .gem--flip .gem-cover { order: 2; border-left: 3px solid var(--mg-line); border-bottom: 0; }
  .gem:not(.gem--flip) .gem-cover { border-right: 3px solid var(--mg-line); border-bottom: 0; }
  .gem-cover { aspect-ratio: auto; min-height: 100%; }
  .gem-body { padding: 1.8rem 2rem; }
}

/* ---------- /news/underrated: filter bar + grid ---------- */
.ug-bar { display: grid; gap: 0.8rem; padding: 1rem 1.2rem; position: sticky; top: 4.5rem; z-index: 20; }
.ug-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.ug-label { font-weight: 800; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; min-width: 5.5rem; color: var(--mg-fg-soft); }
.ug-btn, .ug-reset, .ug-select {
  min-height: 2.75rem; padding: 0.25rem 0.85rem; font: inherit; font-weight: 800; font-size: 0.88rem; cursor: pointer;
  border: 2px solid var(--mg-line); background: var(--mg-panel); color: var(--mg-fg);
}
.ug-btn[aria-pressed='true'] { background: var(--mg-accent); color: var(--mg-accent-ink); box-shadow: 3px 3px 0 var(--mg-line); }
.ug-reset { border-style: dashed; }
.ug-select { max-width: 100%; }
.ug-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 640px) { .ug-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ug-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ug-card { padding: 1.05rem 1.15rem; min-width: 0; box-shadow: 5px 5px 0 var(--mg-shadow); scroll-margin-top: 9rem; }
.ug-card[hidden] { display: none; }
.ug-top { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.ug-meta { margin: -0.1rem 0 0.5rem; }
.ug-genres { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.7rem; }
.ug-genres span { font-size: 0.74rem; font-weight: 800; padding: 0.05rem 0.5rem; border: 2px solid color-mix(in srgb, var(--mg-line) 45%, transparent); }
@media (max-width: 700px) { .ug-bar { position: static; } }

/* ---------- /news/mainstream: the ranked board ---------- */
.mm-board { list-style: none; display: grid; gap: 1.1rem; counter-reset: none; }
.mm-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0.9rem; align-items: start; scroll-margin-top: 5rem; }
.mm-rank { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; text-align: center; color: var(--mg-accent); text-shadow: 3px 3px 0 var(--mg-line); }
.mm-row--top .mm-rank { font-size: 4.6rem; }
.mm-card { padding: 1.05rem 1.25rem; min-width: 0; box-shadow: 5px 5px 0 var(--mg-shadow); }
.mm-row--top .mm-card { padding: 1.3rem 1.5rem; }
.mm-row--top .news-title { font-size: clamp(1.3rem, 3.6vw, 1.7rem); }
.mm-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1rem; }
.mm-head .news-title { flex: 1 1 14rem; margin: 0; min-width: 0; }
.mm-meter { display: inline-flex; align-items: center; gap: 0.3rem; flex: 0 0 auto; }
.mm-seg { width: 1.2rem; height: 0.7rem; border: 2px solid var(--mg-line); }
.mm-seg.on { background: var(--mg-accent); }
.mm-meter-text { margin-left: 0.3rem; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; white-space: nowrap; }
.mm-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
@media (max-width: 520px) { .mm-row { grid-template-columns: 2.8rem minmax(0, 1fr); gap: 0.55rem; } .mm-rank { font-size: 2.4rem; } .mm-row--top .mm-rank { font-size: 2.9rem; } }

/* ---------- /news/blog ---------- */
.bl-list { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .bl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bl-card--feature { grid-column: 1 / -1; } }
.bl-card { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; min-width: 0; box-shadow: 5px 5px 0 var(--mg-shadow); }
.bl-cover { display: block; text-decoration: none; border-bottom: 3px solid var(--mg-line); }
.bl-text { padding: 1.1rem 1.25rem 1.25rem; min-width: 0; }
.bl-text .blog-chip-alt { margin-left: 0.5rem; }
.bl-text h2 a { text-decoration: none; }
.bl-text h2 a:hover { color: var(--mg-accent); }
.bl-feature-title { font-size: clamp(1.5rem, 4.5vw, 2.4rem); margin-bottom: 0.6rem; }
@media (min-width: 760px) {
  .bl-card--feature { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .bl-card--feature .bl-cover { border-bottom: 0; border-right: 3px solid var(--mg-line); }
  .bl-card--feature .bl-text { padding: 1.8rem 2rem; align-self: center; }
}
.bl-article p { margin: 0 0 1.1rem; line-height: 1.75; font-size: 1.05rem; }
.bl-guess { margin: 1.6rem 0; padding: 1.1rem 1.3rem; border-style: dashed; box-shadow: none; background: color-mix(in srgb, var(--mg-accent) 8%, var(--mg-panel)); }
.bl-guess h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; margin-bottom: 0.2rem; }
.bl-guess ul { margin: 0.7rem 0 0 1.1rem; display: grid; gap: 0.55rem; }

/* ---------- /news/more: archive and search ---------- */
.mo-search { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; max-width: 40rem; }
.mo-input { flex: 1 1 14rem; min-height: 2.9rem; padding: 0.4rem 0.9rem; font: inherit; font-size: 1rem; border: 3px solid var(--mg-line); background: var(--mg-panel); color: var(--mg-fg); min-width: 0; }
.mo-results { list-style: none; display: grid; gap: 0.9rem; margin-top: 0.8rem; }
.mo-results li { padding: 0.95rem 1.15rem; min-width: 0; box-shadow: 4px 4px 0 var(--mg-shadow); }
.mo-grid { display: grid; gap: 1.4rem 1.8rem; grid-template-columns: minmax(0, 1fr); margin-top: 0.8rem; }
@media (min-width: 760px) { .mo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mo-col--wide { grid-row: span 3; } }
@media (min-width: 1100px) { .mo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mo-col { min-width: 0; }
.mo-col h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin-bottom: 0.5rem; }
.mo-col ul { list-style: none; display: grid; gap: 0.35rem; font-size: 0.93rem; }
.mo-col li { overflow-wrap: anywhere; }
.mo-month { border-top: 2px solid color-mix(in srgb, var(--mg-line) 30%, transparent); padding: 0.4rem 0; }
.mo-month summary { cursor: pointer; font-weight: 800; min-height: 2.5rem; display: flex; align-items: center; gap: 0.5rem; }
.mo-month ul { margin: 0.3rem 0 0.6rem; }
