/* NEWS extends, rather than replaces, Kokoro's cream-rose / midnight theme. */
.news-page .news-shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.news-hero { padding-block: 82px 46px; position: relative; }
.news-hero .rose-back { display: inline-block; margin-bottom: 35px; }
.news-hero h1 { font-size: clamp(50px, 8vw, 94px); line-height: 1.05; letter-spacing: -.04em; margin: 14px 0 20px; }
.news-hero h1 span { display: inline-block; margin-left: 16px; color: var(--rose-accent); font-size: .48em; animation: newsHeart 5s ease-in-out infinite; }
.news-hero p { color: var(--rose-muted); font-size: 17px; line-height: 1.7; margin: 0; word-break: keep-all; }
.news-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--rose-line); }
.news-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.news-categories button { min-height: 44px; padding: 10px 19px; border-radius: 999px; border: 1px solid var(--rose-line); background: transparent; color: var(--rose-muted); font-size: 15px; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.news-categories button[aria-pressed=true] { color: var(--rose-bg); background: var(--rose-accent); border-color: var(--rose-accent); }
.news-categories button:hover { transform: translateY(-2px); }
.news-search { display: flex; width: min(310px, 100%); border: 1px solid var(--rose-line); border-radius: 9px; overflow: hidden; background: var(--rose-surface); }
.news-search input { min-width: 0; width: 100%; background: transparent; color: var(--rose-ink); border: 0; padding: 12px; font-size: 15px; }
.news-search button { border: 0; background: transparent; color: var(--rose-accent); padding: 0 16px; white-space: nowrap; cursor: pointer; }
.news-count { font-size: 14px; color: var(--rose-muted); margin: 22px 0; min-height: 20px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.news-card { display: flex; flex-direction: column; min-width: 0; color: var(--rose-ink); border: 1px solid var(--rose-line); border-radius: 12px; overflow: hidden; background: var(--rose-surface); transition: transform .25s, border-color .25s, box-shadow .25s; animation: newsEnter .45s both; }
.news-card:hover { transform: translateY(-5px); border-color: var(--rose-accent); box-shadow: 0 12px 30px #6d34400d; }
.news-card-media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--rose-tint); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover img { transform: scale(1.035); }
.news-card-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--rose-accent); gap: 10px; background: radial-gradient(ellipse at 25% 20%, var(--rose-bg), transparent 70%); }
.news-card-placeholder span { font-size: 48px; line-height: 1; }
.news-card-placeholder small { font-size: 12px; letter-spacing: .08em; opacity: .75; }
.news-card-copy { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--rose-muted); font-size: 13px; line-height: 1.5; }
.news-badge { color: var(--rose-accent); }
.news-pin { padding: 2px 7px; background: var(--rose-tint); color: var(--rose-accent); border-radius: 5px; font-size: 11px; }
.news-card h2 { margin: 15px 0 12px; font-size: 22px; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; }
.news-card p { margin: 0; color: var(--rose-muted); font-size: 14px; line-height: 1.8; word-break: keep-all; overflow-wrap: break-word; }
.news-card-arrow { margin-top: 22px; color: var(--rose-accent); font-size: 13px; }
.news-list-end { display: flex; justify-content: center; padding-block: 36px 80px; }
.news-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px; border: 1px solid var(--rose-line); border-radius: 9px; background: var(--rose-surface); color: var(--rose-ink); cursor: pointer; font-size: 15px; }
.news-button:hover { border-color: var(--rose-accent); color: var(--rose-accent); }
.news-button:disabled { opacity: .6; cursor: wait; }
.news-empty { grid-column: 1 / -1; text-align: center; border: 1px dashed var(--rose-line); border-radius: 14px; padding: 60px 24px; background: var(--rose-surface); }
.news-empty > span { display: block; color: var(--rose-accent); font-size: 44px; margin-bottom: 20px; }
.news-empty h2 { margin: 0 0 14px; font-size: 22px; }
.news-empty p { color: var(--rose-muted); font-size: 15px; line-height: 1.8; margin: 0; }
.news-detail { padding-block: 52px 80px; }
.news-detail-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 34px; }
.news-article { max-width: 800px; margin-inline: auto; color: var(--rose-ink); min-width: 0; }
.news-article-head { padding: 30px 0 34px; border-bottom: 1px solid var(--rose-line); margin-bottom: 34px; }
.news-article-title { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.5; margin: 20px 0 0; word-break: keep-all; overflow-wrap: break-word; }
.news-article-summary { color: var(--rose-muted); font-size: 17px; line-height: 1.85; margin: 20px 0 0; word-break: keep-all; overflow-wrap: break-word; }
.news-article > img, .news-article-body img { display: block; width: 100%; height: auto; max-height: none; border-radius: 10px; }
.news-article-body { margin-top: 36px; font-size: 18px; line-height: 1.95; }
.news-article-body p { white-space: pre-wrap; margin: 26px 0; word-break: keep-all; overflow-wrap: break-word; }
.news-article-body h2 { font-size: 27px; margin: 42px 0 18px; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; }
.news-article-body figure { margin: 34px 0; }
.news-article-body figcaption { color: var(--rose-muted); text-align: center; font-size: 20px; margin-top: 12px; white-space: pre-wrap; overflow-wrap: break-word; }
.news-body-link { display: flex; align-items: center; padding: 18px 20px; margin: 26px 0; border: 1px solid var(--rose-line); border-radius: 10px; color: var(--rose-accent); font-size: 17px; overflow-wrap: anywhere; }
.news-video { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; border-radius: 10px; margin: 34px 0; }
.news-engagement { max-width: 800px; margin: 52px auto 0; border-block: 1px solid var(--rose-line); padding-block: 28px; }
.news-engagement h2 { font-size: 19px; margin: 0 0 20px; }
.news-reactions { display: flex; flex-wrap: wrap; gap: 10px; }
.news-reaction { min-height: 46px; padding: 10px 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rose-line); border-radius: 999px; background: var(--rose-surface); color: var(--rose-ink); cursor: pointer; transition: transform .2s, background .2s; }
.news-reaction[aria-pressed=true] { background: var(--rose-tint); border-color: var(--rose-accent); color: var(--rose-accent); }
.news-reaction.is-spark { animation: newsSpark .4s both; }
.news-reaction span[aria-hidden] { font-family: system-ui, sans-serif !important; }
.news-comment-action { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.news-comment-action p { font-size: 15px; color: var(--rose-muted); margin: 0; }
.news-status { font-size: 14px; color: var(--rose-accent); line-height: 1.7; min-height: 20px; margin-top: 15px; }
@keyframes newsEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes newsHeart { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-4px); } }
@keyframes newsSpark { 50% { transform: scale(1.08); } }
@media (max-width: 1000px) { .news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) {
  .news-page .news-shell { width: calc(100% - 36px); }
  .news-hero { padding-block: 42px 30px; }
  .news-hero .rose-back { margin-bottom: 25px; }
  .news-tools { flex-direction: column; align-items: stretch; gap: 16px; }
  .news-categories { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  .news-categories button { padding: 10px 3px; font-size: 13px; }
  .news-search { width: 100%; }
  .news-search input { font-size: 16px; }
  .news-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .news-card-copy { padding: 22px; }
  .news-card h2 { font-size: 22px; }
  .news-detail { padding-top: 28px; }
  .news-article-head { padding-top: 10px; }
  .news-article-body { font-size: 17px; line-height: 1.9; }
  .news-article-body h2 { font-size: 24px; }
  .news-empty { padding: 44px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .news-page *, .news-admin * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
