/* Shared news styling: lists, full articles and project news sections. */
.news-theme {
  --news-accent: var(--color-secondary);
  --news-outline: color-mix(in srgb, var(--news-accent) 32%, var(--color-surface));
  --news-panel: color-mix(in srgb, var(--color-surface) 94%, white);
}
.news-theme.news-kind-minecraft, .project-news[data-news-kind="minecraft"] { --news-accent: #69dba0; }
.news-theme.news-kind-game_mod, .project-news[data-news-kind="game_mod"] { --news-accent: #ff7781; }
.news-theme.news-kind-roleplay, .project-news[data-news-kind="roleplay"] { --news-accent: #f3c174; }
.project-news {
  --news-accent: var(--color-secondary);
  --news-outline: color-mix(in srgb, var(--news-accent) 32%, var(--color-surface));
  --news-panel: color-mix(in srgb, var(--color-surface) 94%, white);
}
.news-theme .section__eyebrow { display: flex; align-items: center; gap: .8rem; }
.news-theme .section__eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 0 12px color-mix(in srgb, currentColor 35%, transparent);
}
.news-theme .news-list { gap: 1.3rem; }
.news-theme :is(.news-list__item, .news-empty) {
  min-width: 0;
  border: 1px solid var(--news-outline);
  border-top: 2px solid var(--news-accent);
  border-radius: 1.1rem;
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--news-accent) 11%, transparent), transparent 75%),
    linear-gradient(145deg, var(--news-panel), var(--color-surface));
  box-shadow: 0 10px 30px rgb(0 0 0 / 18%), inset 0 1px 0 rgb(255 255 255 / 3%);
}
.news-theme .news-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.news-theme .news-list__icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  color: var(--news-accent);
  border: 1px solid color-mix(in srgb, var(--news-accent) 25%, transparent);
  border-radius: .9rem;
  background: color-mix(in srgb, var(--news-accent) 10%, transparent);
}
.news-theme .news-list__icon svg { width: 1.65rem; height: 1.65rem; }
.news-theme .news-list__body { min-width: 0; overflow-wrap: anywhere; }
.news-theme .news-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-bottom: 1rem; }
.news-theme .news-list__label { color: var(--news-accent); font-size: .75rem; letter-spacing: .04em; }
.news-theme .news-list__meta time {
  margin: 0;
  padding: .3rem .65rem;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 999px;
  background: rgb(0 0 0 / 18%);
  color: color-mix(in srgb, var(--color-text) 75%, var(--color-muted));
}
.news-theme .news-list__body > p { line-height: 1.65; margin-bottom: 1.1rem; }
.news-theme .news-list__actions { padding-top: .85rem; border-top: 1px solid color-mix(in srgb, var(--news-accent) 16%, transparent); }
.news-theme .news-list__item:focus-within { border-color: var(--news-accent); box-shadow: 0 12px 32px rgb(0 0 0 / 24%), 0 0 22px color-mix(in srgb, var(--news-accent) 12%, transparent); }
.news-theme :is(.news-list__item a, .btn):focus-visible { outline: 2px solid var(--news-accent); outline-offset: 5px; border-radius: .3rem; }
.news-theme .news-empty { padding: 1.75rem; }
.news-theme .news-empty p { margin: 0; }
.news-theme .news-list__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 639px) {
  .news-theme .news-list__item { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .news-theme .news-list__item:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--news-accent) 60%, var(--color-surface));
    box-shadow: 0 16px 34px rgb(0 0 0 / 26%), 0 0 24px color-mix(in srgb, var(--news-accent) 10%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .news-theme .news-list__item { transition: none; }
}

/* A quiet, readable article surface rather than an unframed text block. */
.news-theme .news-article { max-width: 56rem; overflow-wrap: anywhere; }
.news-theme .news-article__panel,
.project-section.project-news .news-card {
  border: 1px solid var(--news-outline);
  border-top: 2px solid var(--news-accent);
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--news-accent) 10%, transparent), transparent 65%),
    linear-gradient(145deg, var(--news-panel), var(--color-surface));
  box-shadow: 0 12px 34px rgb(0 0 0 / 22%), inset 0 1px 0 rgb(255 255 255 / 4%);
}
.news-theme .news-article__panel { padding: clamp(1.25rem, 4vw, 2.75rem); }
.news-theme .news-article__header { padding-bottom: 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--news-accent) 20%, transparent); }
.news-theme .news-article__top { display: flex; align-items: center; gap: 1rem; }
.news-theme .news-article__top .news-list__icon { flex: 0 0 auto; }
.news-theme .news-article__top .news-list__meta { margin: 0; }
.news-theme .news-article__header h1 { margin: 1.5rem 0 0; line-height: 1.35; }
.news-theme .news-article__context { margin: 1.15rem 0 0; color: var(--color-muted); font-size: .85rem; }
.news-theme .news-article__context a { color: var(--news-accent); }
.news-theme .news-article__body { margin-top: 1.75rem; color: color-mix(in srgb, var(--color-text) 80%, var(--color-muted)); }
.news-theme .news-article__body > :first-child { margin-top: 0; }
.news-theme .news-article__body > :last-child { margin-bottom: 0; }
.news-theme .news-article__body :is(h2,h3,h4) { color: var(--news-accent); }
.news-theme .news-article__body strong { color: var(--color-text); }
.news-theme .news-article__body a { color: var(--news-accent); text-decoration: underline; text-underline-offset: .2em; }
.news-theme .news-article__body img { max-width: 100%; height: auto; border-radius: .85rem; }
.news-theme .news-article__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--news-accent) 20%, transparent); }
.news-theme .news-article a:focus-visible { outline: 2px solid var(--news-accent); outline-offset: 4px; border-radius: .25rem; }
.news-theme .news-article__actions .btn { border-color: var(--news-outline); }
.news-theme .news-article__actions .btn:hover { border-color: var(--news-accent); }

/* More specific than the existing project panels, without touching features. */
.project-section.project-news .news-card { padding: 1.4rem; gap: .85rem; overflow-wrap: anywhere; transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.project-section.project-news .news-card::before { background: var(--news-accent); }
.project-news .project-news__label { display: flex; align-items: center; gap: .75rem; color: var(--news-accent); font-size: .75rem; }
.project-news .project-news__icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; flex: 0 0 auto; border-radius: .85rem; background: color-mix(in srgb, var(--news-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--news-accent) 25%, transparent); }
.project-news .project-news__icon svg { width: 1.5rem; height: 1.5rem; }
.project-section.project-news .news-card__date { width: fit-content; max-width: 100%; padding: .3rem .65rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / 9%); background: rgb(0 0 0 / 18%); color: var(--color-muted); }
.project-section.project-news .news-card__more { padding-top: .85rem; border-top: 1px solid color-mix(in srgb, var(--news-accent) 16%, transparent); color: var(--news-accent); }
.project-section.project-news .news-card__title a:hover { color: var(--news-accent); }
.project-section.project-news .news-card:focus-within { border-color: var(--news-accent); }
.project-news a:focus-visible { outline: 2px solid var(--news-accent); outline-offset: 4px; border-radius: .25rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-section.project-news .news-card:hover { transform: translateY(-4px); border-color: var(--news-accent); box-shadow: 0 16px 34px rgb(0 0 0 / 26%), 0 0 24px color-mix(in srgb, var(--news-accent) 10%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .project-section.project-news .news-card { transition: none; }
}
