.news-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .75rem; color: #111; }
.news-section-heading h1, .news-section-heading h2 { font-size: 1.375rem; font-weight: 500; margin: 0; }
.news-all-link { font-size: .8125rem; color: #111; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.news-all-link:hover { color: #111; }
.news-post-count { font-size: .75rem; color: #444; }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem .75rem; }
.news-post { min-width: 0; scroll-margin-top: 1rem; }
.news-card { display: block; color: #111; text-decoration: none; }
.news-thumbnail { position: relative; aspect-ratio: 1; overflow: hidden; background: #f5f5f5; }
.news-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-kind-document img, .news-kind-poster img { object-fit: contain; padding: .35rem; }
.news-kind-icon { background: #fafafa; }
.news-kind-icon img { object-fit: contain; }
.news-kind-icon img, .news-media[data-kind="icon"] > img { filter: grayscale(1); }
.news-kind-banner, .news-media[data-kind="banner"] { background: #222; }
.news-kind-banner img, .news-media[data-kind="banner"] > img { object-fit: contain; padding: .75rem; }
.news-image-count { position: absolute; top: .4rem; right: .4rem; display: flex; align-items: center; gap: .2rem; background: #fffffff2; color: #111; padding: .15rem .3rem; font-size: .6875rem; }
.news-card-copy { padding-top: .4rem; }
.news-card-label { font-size: .8125rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card time { display: block; margin-top: .2rem; color: #444; font-size: .6875rem; font-variant-numeric: tabular-nums; }
.news-card:hover { color: #111; }
.news-card:hover .news-card-label { text-decoration: underline; text-underline-offset: 2px; }
.recent-news { margin: 1.75rem 0; }
.recent-news-list { list-style: none; padding: 0; margin: 0; }
.recent-news-link { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); align-items: baseline; gap: .5rem; padding: .25rem 0; text-decoration: none; color: #111; line-height: 1.4; }
.recent-news-label { font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-news-link time { color: #333; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.recent-news-link:hover { color: #111; }
.recent-news-link:hover .recent-news-label { text-decoration: underline; text-underline-offset: 2px; }
.recent-papers { margin: 1.75rem 0; }
.recent-papers-list { list-style: none; padding: 0; margin: 0; }
.recent-paper-link { display: block; padding: .3rem 0; color: #111; text-decoration: none; }
.recent-paper-title { display: block; font-size: .875rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-paper-citation { display: block; margin-top: .1rem; font-size: .75rem; line-height: 1.4; color: #444; }
.recent-paper-citation strong { font-weight: 400; }
.recent-paper-link:hover { color: #111; }
.recent-paper-link:hover .recent-paper-title { text-decoration: underline; text-underline-offset: 2px; }
.recent-paper-link:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.news-dialog { width: min(520px, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; margin: auto; border: 1px solid #ddd; border-radius: 0; background: #fff; color: #111; overflow-y: auto; overscroll-behavior: contain; }
.news-dialog::backdrop { background: #0009; }
.news-media { position: relative; width: 100%; height: min(520px, calc(100vw - 2rem), 65dvh); background: #f5f5f5; overflow: hidden; }
.news-media > img { display: block; width: 100%; height: 100%; object-fit: contain; touch-action: pan-y; }
.news-icon-button { display: grid; place-items: center; position: absolute; z-index: 1; width: 32px; height: 32px; border: 1px solid #ddd; border-radius: 0; color: #111; background: #fffffff2; cursor: pointer; padding: 0; line-height: 1; }
.news-icon-button[hidden], .news-slide-count[hidden] { display: none; }
.news-close { top: 8px; right: 8px; font-size: 24px; }
.news-previous, .news-next { top: calc(50% - 16px); font-size: 26px; }
.news-previous { left: 8px; }
.news-next { right: 8px; }
.news-slide-count { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); padding: .15rem .45rem; background: #fffffff2; color: #111; font-size: .6875rem; }
.news-dialog-copy { padding: .85rem 1rem 1rem; }
.news-dialog-copy h2 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 500; line-height: 1.35; }
.news-dialog-copy p { margin: 0; font-size: .875rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.news-dialog-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: .65rem; font-size: .6875rem; }
.news-dialog-footer time { color: #444; }
.news-dialog-footer a { color: #111; text-decoration: underline; text-underline-offset: 2px; }
.news-dialog-footer a:hover { color: #111; }
.news-card:focus-visible, .recent-news-link:focus-visible, .news-all-link:focus-visible, .news-icon-button:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
@media (max-width: 767.98px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem .6rem; }
  .news-card-label { font-size: .75rem; }
  .recent-news-link { grid-template-columns: 4.5rem minmax(0, 1fr); gap: .35rem; }
  .recent-news-label { font-size: .8125rem; }
  .recent-paper-title { font-size: .8125rem; }
  .recent-news-link time { font-size: .75rem; }
  .news-dialog-copy { padding: .75rem .85rem .85rem; }
}
