.news-page {
  max-width: 1360px;
  padding-block: clamp(12px, 2.2vw, 34px) clamp(38px, 6vw, 90px);
}
.news-index-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 22px;
  margin-bottom: clamp(14px, 2.2vw, 30px);
}
.news-index-head h1 {
  margin: 0;
  color: var(--ms-text);
  font: 820 clamp(2.4rem, 5.5vw, 5.25rem)/.98 var(--display);
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.news-telegram, .news-back, .news-pages a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 44px;
  color: var(--ms-text);
  text-decoration: none;
  font: 650 .85rem/1.2 var(--display);
}
.news-telegram, .news-pages a {
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--ms-panel);
}
.news-telegram svg, .news-back svg, .news-pages svg { flex: none }
.news-grid {
  --news-gap: clamp(12px, 1.25vw, 18px);
  display: grid;
  gap: var(--news-gap);
}
.news-row {
  display: grid;
  grid-template-columns: repeat(var(--news-columns), minmax(0,1fr));
  gap: var(--news-gap);
  align-items: stretch;
  width: 100%;
}
.news-card {
  --news-tint: var(--ms-panel);
  min-width: 0;
}
.news-card:nth-child(3n + 1) { --news-tint: var(--ms-mist) }
.news-card:nth-child(3n + 2) { --news-tint: var(--ms-oat) }
.news-card:nth-child(3n) { --news-tint: var(--ms-sage) }
.news-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--ms-card-radius);
  background: var(--news-tint);
  color: var(--ms-text);
  text-decoration: none;
}
.news-card-media-frame {
  position: relative;
  flex: none;
  aspect-ratio: var(--news-frame, 1.35);
  overflow: hidden;
  isolation: isolate;
  background: color-mix(in srgb, var(--news-tint) 58%, var(--ms-bg));
}
.news-card-ambient {
  position: absolute;
  inset: -12%;
  display: block;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(28px) saturate(.9);
  opacity: .43;
  pointer-events: none;
}
.news-card-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.news-video-indicator {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 5px;
  padding: .32em .66em;
  border-radius: 99px;
  background: var(--ms-bg);
  color: var(--ms-text);
  font: 650 .75rem/1.2 var(--body);
}
.news-card-media-frame .news-video-indicator { position: absolute; inset: auto auto 12px 12px; z-index: 2 }
.news-new {
  position: absolute;
  z-index: 2;
  inset: 12px 12px auto auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ms-gold);
  color: var(--ms-graphite);
  font: 800 .68rem/1 var(--display);
  letter-spacing: .07em;
}
.news-new::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.news-card:not(.news-card-media) .news-card-link:has(.news-new) { padding-top: 27px }
.news-card-copy {
  flex: 1;
  display: grid;
  align-content: start;
  gap: clamp(5px, .65vw, 9px);
  padding: clamp(12px, 1.45vw, 21px) clamp(14px, 1.7vw, 25px) clamp(15px, 1.7vw, 24px);
}
.news-card:not(.news-card-media) .news-card-copy { align-content: center }
.news-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px }
.news-card-copy time, .news-article-head time {
  color: var(--ms-muted);
  font: 600 .8rem/1.2 var(--body);
}
.news-card-copy h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  font: 720 clamp(1.13rem, 1.9vw, 1.82rem)/1.22 var(--display);
  letter-spacing: -.018em;
  overflow-wrap: anywhere;
}
.news-card-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: var(--ms-muted);
  font: 500 clamp(.8rem, 1.25vw, .97rem)/1.4 var(--body);
  overflow-wrap: anywhere;
}
.news-card-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(30px, 3.4vw, 40px);
  height: clamp(30px, 3.4vw, 40px);
  border-radius: 50%;
  background: var(--ms-text);
  color: var(--ms-inverse);
}
.news-empty {
  margin: 0;
  padding: clamp(18px, 3vw, 36px);
  border-radius: var(--ms-card-radius);
  background: var(--ms-panel);
  color: var(--ms-muted);
}
.news-pages {
  display: flex;
  gap: 10px 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
  color: var(--ms-muted);
  font-size: .85rem;
}

.news-detail-page { padding-top: clamp(9px, 2vw, 30px) }
.news-article {
  width: min(100%, 46rem);
  margin-inline: auto;
  overflow-wrap: anywhere;
}
.news-article-nav { margin-bottom: clamp(7px, 1.2vw, 16px) }
.news-article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.news-article-hero + .news-prose {
  margin-top: clamp(18px, 2.4vw, 28px);
}
.news-article-head {
  display: grid;
  gap: clamp(8px, 1.1vw, 14px);
  min-width: 0;
}
.news-article-head h1 {
  margin: 0;
  color: var(--ms-text);
  font: 760 clamp(1.65rem, 1.24rem + 2vw, 2.75rem)/1.14 var(--display);
  letter-spacing: -.028em;
  text-wrap: balance;
}
.news-article-cover {
  overflow: hidden;
  border-radius: var(--ms-card-radius);
  background: var(--ms-panel);
}
.news-article-cover .news-attachment :is(img, video) {
  max-height: min(66vh, 38rem);
  max-height: min(66svh, 38rem);
  border-radius: 0;
  background: transparent;
}
.news-article-cover .news-attachment-video video {
  aspect-ratio: auto var(--news-article-ratio, 1.7778);
}
.news-article-cover .news-attachment-image img {
  /* Give portrait posters enough room for their lettering at the full reading width. */
  max-height: min(140vw, 60rem);
}
.news-article-video-preview {
  display: grid;
  align-items: center;
  gap: clamp(10px, 1.9vw, 25px);
  padding: clamp(12px, 2vw, 22px);
  border-radius: var(--ms-card-radius);
  background: var(--ms-mist);
}
.news-article-video-preview.has-image { grid-template-columns: minmax(0, 320px) minmax(0, 1fr) }
.news-article-video-preview .news-attachment img { width: auto; max-width: 100% }
.news-article-video-copy { display: grid; gap: 7px }
.news-article-video-copy strong { font: 720 clamp(1.05rem, 1.8vw, 1.35rem)/1.25 var(--display) }
.news-article-video-copy .news-telegram { background: var(--ms-bg) }
@media (max-width: 560px) {
  .news-article-video-preview.has-image { grid-template-columns: minmax(0,1fr) }
}
.news-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  align-items: start;
  gap: clamp(8px, 1.25vw, 16px);
  margin-block: clamp(18px, 4vw, 42px);
}
.news-attachment { min-width: 0; margin: 0 }
.news-attachment :is(img,video),
.news-prose .news-block-media :is(img,video):not(.news-custom-emoji, .news-emoji-animation) {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(68svh, 670px);
  border-radius: var(--ms-card-radius);
  object-fit: contain;
  background: var(--ms-panel);
}
.news-attachment audio, .news-prose audio { width: min(100%, 400px) }
.news-prose .news-rich-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  align-items: start;
  gap: clamp(8px, 1.4vw, 16px);
}
.news-prose .news-rich-gallery > .news-block-media { margin: 0 }
.news-prose figure { margin-inline: 0 }
.news-prose figcaption {
  margin-top: .65em;
  color: var(--ms-muted);
  font-size: .83em;
  line-height: 1.45;
}
.news-file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--ms-panel);
  color: var(--ms-text);
  font-weight: 680;
}
.news-file-link svg { flex: none }
.news-prose {
  display: flow-root;
  color: var(--ms-text);
  font: 480 clamp(1rem, 1.3vw, 1.17rem)/1.62 var(--body);
  overflow-wrap: anywhere;
}
.news-article-caption {
  margin-bottom: .75em;
  color: var(--ms-muted);
  font-size: .88em;
}
.news-prose :is(p, pre, blockquote, ul, ol, details, figure, aside) { margin-block: .65em 1em }
.news-prose :is(ul, ol) { padding-inline-start: 1.5em }
.news-prose ul { list-style: disc }
.news-prose ol { list-style: decimal }
.news-prose li + li { margin-top: .25em }
.news-prose :is(ul, ol) :is(ul, ol) { margin-block: .1em .35em }
.news-prose :is(h2, h3, h4, h5, h6) {
  margin: 1em 0 .35em;
  font-family: var(--display);
  line-height: 1.15;
}
.news-prose > :first-child { margin-top: 0 }
.news-prose > :last-child { margin-bottom: 0 }
.news-prose a:not(.news-file-link) {
  color: var(--ms-focus);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.news-prose :is(blockquote, aside) {
  margin-inline: 0;
  padding: .65em 1em;
  border-radius: 0 12px 12px 0;
  border-inline-start: 3px solid var(--ms-focus);
  background: var(--ms-panel);
}
.news-prose aside > blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.news-prose blockquote > :first-child { margin-top: 0 }
.news-prose blockquote > :last-child { margin-bottom: 0 }
.news-prose :is(pre, code) { background: var(--ms-mist); color: var(--ms-text) }
.news-prose code { border-radius: 4px; padding: .08em .25em }
.news-prose pre {
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: normal;
  padding: .8em;
  border-radius: 12px;
}
.news-prose pre code { padding: 0 }
.news-prose .news-table {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 1em;
}
.news-prose table { width: max-content; min-width: 100%; border-collapse: collapse }
.news-prose caption { padding-bottom: .45em; text-align: start; font-weight: 680 }
.news-prose :is(th,td) {
  max-width: 34ch;
  padding: .5em .7em;
  border-bottom: 1px solid var(--ms-panel);
  text-align: start;
  vertical-align: top;
}
.news-prose th { background: var(--ms-panel) }
.news-article details > summary {
  width: fit-content;
  border-radius: 10px;
  padding: .3em .7em;
  background: var(--ms-panel);
  cursor: pointer;
}
.news-article details[open] > summary { margin-bottom: 8px }
.news-inline-spoiler {
  background: var(--ms-text);
  color: transparent;
  border-radius: .2em;
  cursor: pointer;
}
.news-inline-spoiler:not(:hover, :focus, :focus-within) * { visibility: hidden }
.news-inline-spoiler:is(:hover, :focus, :focus-within) { background: var(--ms-panel); color: var(--ms-text) }
:is(.news-prose, .news-card-copy, .news-article-head) :is(.news-custom-emoji, .news-emoji) {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -.18em;
  object-fit: contain;
}
.news-article-head h1 :is(.news-custom-emoji, .news-emoji) {
  width: .94em;
  height: .94em;
  margin-inline-end: .12em;
  vertical-align: -.12em;
}
.news-emoji { position: relative }
.news-emoji-animation { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain }
.news-emoji-animation :is(canvas,svg) { display: block; width: 100%; height: 100% }
.news-emoji-ready .news-emoji-fallback { opacity: 0 }
@media (prefers-reduced-motion: reduce) {
  .news-emoji-animation { visibility: hidden }
  .news-emoji-ready .news-emoji-fallback { opacity: 1 }
}
.news-rich-buttons { display: flex; flex-wrap: wrap; gap: 6px 8px }
.news-rich-buttons a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 13px;
  border-radius: 99px;
  background: var(--ms-mist);
  font: 650 .86rem/1.2 var(--body);
}
.news-article-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 14px;
  margin-top: clamp(20px, 3.8vw, 44px);
  padding: clamp(8px, 1.25vw, 14px);
  padding-inline-start: clamp(12px, 1.6vw, 19px);
  border-radius: var(--ms-card-radius);
  background: var(--ms-panel);
  color: var(--ms-text);
}
.news-article-source .news-back { margin: 0 }
.news-article-source .news-telegram { background: var(--ms-bg) }

@media (max-width: 850px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch }
  .news-row { display: contents }
  .news-card { --news-frame: 1.25 }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); gap: var(--news-gap) }
  .news-card { --news-frame: clamp(.95, var(--news-ratio), 1.5) }
}
@media (hover:hover) {
  .news-card-link:hover .news-card-arrow { background: var(--ms-selection); color: var(--ms-text) }
  .news-telegram:hover, .news-pages a:hover { background: var(--ms-selection) }
}
