:root {
  --news-tag-update: var(--accent-400);
  --news-tag-security: var(--danger-300);
  --news-tag-pro: var(--warning-300);
  --news-tag-other: var(--graphite-300);
  --news-text: color-mix(in srgb, var(--text-primary) 82%, var(--text-secondary));
  --news-link: var(--accent-400);
  --news-code-bg: var(--bg-secondary);
  --news-code-border: var(--border);
  --news-quote-bar: var(--dark-600);
  --news-spoiler: var(--dark-700);
  --news-spoiler-hover: var(--dark-600);
  --news-spoiler-open: color-mix(in srgb, var(--text-primary) 9%, transparent);
  --news-time-bg: color-mix(in srgb, var(--text-primary) 9%, transparent);
  --news-shine-base: var(--text-primary);
  --news-shine-glint: var(--accent-300);
  --news-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  --hl-keyword: #f47067;
  --hl-string: #96d0ff;
  --hl-number: #6cb6ff;
  --hl-comment: #768390;
  --hl-title: #dcbdfb;
  --hl-attr: #6cb6ff;
  --hl-builtin: #f69d50;
  --hl-tag: #8ddb8c;
  --hl-meta: #96d0ff;
  --hl-variable: #f69d50;
  --hl-addition: #8ddb8c;
  --hl-deletion: #f47067;
}

:root[data-theme='light'] {
  --news-tag-update: var(--accent-700);
  --news-tag-security: var(--danger-700);
  --news-tag-pro: var(--warning-700);
  --news-tag-other: var(--graphite-600);
  --news-link: var(--accent-700);
  --news-code-bg: var(--light-100);
  --news-code-border: var(--light-200);
  --news-quote-bar: var(--light-300);
  --news-spoiler: var(--light-300);
  --news-spoiler-hover: var(--light-400);
  --news-shine-glint: var(--accent-600);
  --hl-keyword: #cf222e;
  --hl-string: #0a3069;
  --hl-number: #0550ae;
  --hl-comment: #6e7781;
  --hl-title: #8250df;
  --hl-attr: #0550ae;
  --hl-builtin: #953800;
  --hl-tag: #116329;
  --hl-meta: #0a3069;
  --hl-variable: #953800;
  --hl-addition: #116329;
  --hl-deletion: #82071e;
}

.news-md {
  min-width: 0;
  color: var(--news-text);
  font-size: var(--text-base);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.news-md > :first-child {
  margin-top: 0;
}

.news-md .md-line {
  margin: 0;
  min-height: 1.5em;
}

.news-md h1,
.news-md h2,
.news-md h3 {
  margin: 1rem 0 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: 1.375;
  letter-spacing: -0.01em;
}

.news-md h1 {
  font-size: 1.5rem;
}

.news-md h2 {
  font-size: 1.25rem;
}

.news-md h3 {
  font-size: 1rem;
}

.news-md strong {
  color: var(--text-primary);
  font-weight: var(--weight-bold);
}

.news-md a {
  color: var(--news-link);
  text-decoration: none;
}

.news-md a:hover {
  text-decoration: underline;
}

.news-md .md-subtext {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.news-md .md-hr {
  margin: 0.75rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.news-md .md-list {
  margin: 0.25rem 0;
  padding-inline-start: 1.25rem;
}

.news-md ul.md-list {
  list-style-type: disc;
}

.news-md ul.md-list ul.md-list {
  list-style-type: circle;
}

.news-md ul.md-list ul.md-list ul.md-list {
  list-style-type: square;
}

.news-md ol.md-list {
  list-style-type: decimal;
}

.news-md .md-list li {
  margin-bottom: 0.25rem;
}

.news-md .md-list li::marker {
  color: var(--text-muted);
}

.news-md .md-quote {
  position: relative;
  margin: 0.25rem 0;
  padding: 0 0.5rem 0 1rem;
}

.news-md .md-quote::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 4px;
  background: var(--news-quote-bar);
  content: '';
}

.news-md .md-code-inline {
  padding: 0 0.2em;
  border: 1px solid var(--news-code-border);
  border-radius: 4px;
  background: var(--news-code-bg);
  font-family: var(--news-mono);
  font-size: 0.875em;
  white-space: pre-wrap;
}

.news-md .md-codeblock {
  max-width: 100%;
  margin: 0.5rem 0;
  overflow: hidden;
  border: 1px solid var(--news-code-border);
  border-radius: var(--radius-sm);
  background: var(--news-code-bg);
}

.news-md .md-codeblock figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.35rem 0.25rem 0.75rem;
  border-bottom: 1px solid var(--news-code-border);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.news-md .md-codeblock pre {
  margin: 0;
  padding: 0.75rem;
  overflow-x: auto;
  font-family: var(--news-mono);
  font-size: 0.875rem;
  line-height: 1.45;
  tab-size: 4;
}

.news-md .md-codeblock code {
  overflow-wrap: normal;
  white-space: pre;
}

.news-copy {
  position: relative;
  min-height: 1.75rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-press) var(--ease-out);
}

.news-copy::before {
  position: absolute;
  inset: -0.5rem -0.25rem;
  content: '';
}

.news-copy:active {
  transform: scale(var(--press-scale));
}

@media (hover: hover) and (pointer: fine) {
  .news-copy:hover {
    background: var(--surface);
    color: var(--text-primary);
  }
}

.news-md .hljs-keyword,
.news-md .hljs-selector-tag,
.news-md .hljs-doctag {
  color: var(--hl-keyword);
}

.news-md .hljs-string,
.news-md .hljs-regexp,
.news-md .hljs-template-tag {
  color: var(--hl-string);
}

.news-md .hljs-number,
.news-md .hljs-literal,
.news-md .hljs-symbol {
  color: var(--hl-number);
}

.news-md .hljs-comment,
.news-md .hljs-quote {
  color: var(--hl-comment);
  font-style: italic;
}

.news-md .hljs-title,
.news-md .hljs-section,
.news-md .hljs-title.function_ {
  color: var(--hl-title);
}

.news-md .hljs-attr,
.news-md .hljs-attribute,
.news-md .hljs-property,
.news-md .hljs-selector-class,
.news-md .hljs-selector-id {
  color: var(--hl-attr);
}

.news-md .hljs-built_in,
.news-md .hljs-type,
.news-md .hljs-title.class_ {
  color: var(--hl-builtin);
}

.news-md .hljs-tag,
.news-md .hljs-name,
.news-md .hljs-selector-pseudo {
  color: var(--hl-tag);
}

.news-md .hljs-meta,
.news-md .hljs-meta .hljs-string {
  color: var(--hl-meta);
}

.news-md .hljs-variable,
.news-md .hljs-template-variable,
.news-md .hljs-params {
  color: var(--hl-variable);
}

.news-md .hljs-addition {
  color: var(--hl-addition);
}

.news-md .hljs-deletion {
  color: var(--hl-deletion);
}

.news-md .hljs-emphasis {
  font-style: italic;
}

.news-md .hljs-strong {
  font-weight: var(--weight-bold);
}

.news-md .md-spoiler {
  border-radius: 4px;
  background: var(--news-spoiler-open);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.news-md .md-spoiler[aria-expanded='false'] {
  background: var(--news-spoiler);
  color: transparent;
  cursor: pointer;
}

.news-md .md-spoiler[aria-expanded='false'] * {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .news-md .md-spoiler[aria-expanded='false']:hover {
    background: var(--news-spoiler-hover);
  }
}

.news-md .md-spoiler:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}

.news-md .md-shine {
  background: linear-gradient(100deg, var(--news-shine-base) 40%, var(--news-shine-glint) 50%, var(--news-shine-base) 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: var(--weight-bold);
  animation: news-shine 3s linear infinite;
}

.news-md .md-shine[data-offscreen] {
  animation-play-state: paused;
}

:root[data-motion='reduce'] .news-md .md-shine {
  background: linear-gradient(100deg, var(--news-shine-base), var(--news-shine-glint));
  -webkit-background-clip: text;
  background-clip: text;
  animation: none !important;
}

@keyframes news-shine {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

.news-md .md-time {
  padding: 0 0.15em;
  border-radius: 3px;
  background: var(--news-time-bg);
}

.news-md .md-emoji {
  display: inline-block;
  width: 1.375em;
  height: 1.375em;
  margin: 0 0.05em;
  object-fit: contain;
  vertical-align: -0.35em;
}

.news-md .md-callout {
  --callout: var(--info);
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5.5M12 7.5h.01'/%3E%3C/svg%3E");
  margin: 0.5rem 0;
  padding: 0.7rem 1rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--callout) 30%, var(--border));
  border-left: 4px solid var(--callout);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--callout) 7%, transparent);
}

.news-md .md-callout-tip {
  --callout: var(--success);
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.5 10.9c.6.4 1 1.1 1 1.9V16h5v-.2c0-.8.4-1.5 1-1.9A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
}

.news-md .md-callout-warning {
  --callout: var(--warning);
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 2.5 20h19z'/%3E%3Cpath d='M12 10v4.5M12 17.5h.01'/%3E%3C/svg%3E");
}

.news-md .md-callout-important {
  --callout: var(--danger);
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 4h16v12H9l-5 4z'/%3E%3Cpath d='M12 7.5v4M12 13.5h.01'/%3E%3C/svg%3E");
}

.news-md .md-callout-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
  color: var(--callout);
  font-weight: var(--weight-bold);
}

.news-md .md-callout-title::before {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  background: currentColor;
  content: '';
  -webkit-mask: var(--callout-icon) center / contain no-repeat;
  mask: var(--callout-icon) center / contain no-repeat;
}

.news-md .md-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  max-width: 34rem;
  margin: 0.5rem 0;
}

.news-md .md-media-1 {
  grid-template-columns: minmax(0, 1fr);
}

.news-md .md-media-2,
.news-md .md-media-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-md .md-image {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: zoom-in;
}

.news-md .md-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.news-md .md-media-1 .md-image {
  width: fit-content;
  max-width: 100%;
}

.news-md .md-media-1 .md-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 28rem;
  aspect-ratio: auto;
  object-fit: contain;
}

.news-md .md-media video,
.news-md .md-media audio,
.news-md .md-media .md-file {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
}

.news-md .md-media video {
  max-height: 28rem;
  border-radius: var(--radius-sm);
  background: #000;
}

.news-md .md-file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 26rem;
  min-height: 3.5rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--news-code-bg);
  text-decoration: none;
}

.news-md .md-file::before {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  background: var(--text-muted);
  content: '';
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M14 3.5H7a1 1 0 0 0-1 1v15a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7.5z'/%3E%3Cpath d='M14 3.5v4h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M14 3.5H7a1 1 0 0 0-1 1v15a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7.5z'/%3E%3Cpath d='M14 3.5v4h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.news-md .md-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--news-link);
  font-weight: var(--weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-md .md-file-size {
  flex: none;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.news-page {
  max-width: 52rem;
}

.news-page-post {
  max-width: 46rem;
}

.news-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.news-filter-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.news-filter-link::before {
  position: absolute;
  inset: -0.25rem 0;
  content: '';
}

@media (hover: hover) and (pointer: fine) {
  .news-filter-link:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
  }
}

.news-filter-link[aria-current='page'] {
  border-color: var(--ring-accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--text-primary);
}

.news-tag {
  --tag: var(--news-tag-other);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.18rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--tag) 40%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag) 12%, transparent);
  color: var(--tag);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  white-space: nowrap;
}

.news-tag::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.news-tag-update {
  --tag: var(--news-tag-update);
}

.news-tag-security {
  --tag: var(--news-tag-security);
}

.news-tag-pro {
  --tag: var(--news-tag-pro);
}

.news-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-pinned-section {
  margin-bottom: 0.75rem;
}

.news-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.news-card.has-cover {
  grid-template-columns: minmax(0, 1fr) 9.5rem;
}

.news-card.is-pinned {
  border-color: var(--ring-accent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 55%);
}

@media (hover: hover) and (pointer: fine) {
  .news-card:not(.news-card-skeleton):hover {
    border-color: var(--border-strong);
  }

  .news-card.is-pinned:hover {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  }
}

.news-card:has(.news-card-title a:focus-visible) {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

:root[data-enter] .news-card,
.news-card.is-new {
  animation: row-in 240ms var(--ease-out) both;
  animation-delay: calc(min(var(--i, 0), 10) * var(--stagger));
}

.news-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.news-pinned {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.news-pinned .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.news-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.news-card-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.news-card-title a:focus-visible {
  outline: none;
}

.news-card-title a::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: '';
}

.news-card-summary {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  overflow-wrap: anywhere;
}

.news-card-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  align-self: start;
  border-radius: var(--radius-md);
  background: var(--surface);
  object-fit: cover;
}

.news-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.news-avatar {
  width: 1.75rem;
  height: 1.75rem;
}

.news-author {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  overflow-wrap: anywhere;
}

.news-byline .user-badge {
  position: relative;
  z-index: 1;
}

.news-when {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}

.news-relative,
.news-edited {
  color: var(--text-muted);
}

.news-relative::before,
.news-edited::before {
  margin-right: 0.5rem;
  color: var(--border-strong);
  content: '/' / '';
}

.news-card-skeleton .skeleton {
  display: block;
  height: 0.9rem;
}

.news-skeleton-tag {
  width: 5rem;
  height: 1.4rem !important;
  border-radius: 999px !important;
}

.news-skeleton-title {
  width: 70%;
  height: 1.4rem !important;
}

.news-skeleton-line {
  width: 90%;
}

.news-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.news-more .button {
  min-height: 2.75rem;
}

.news-more-error {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.news-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.news-empty a {
  color: var(--news-link);
}

.news-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: -0.5rem 0 0.75rem -0.6rem;
  padding: 0 0.9rem 0 0.6rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-press) var(--ease-out);
}

.news-back .icon {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 180ms var(--ease-out);
}

.news-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  color: var(--text-primary);
}

.news-back:active {
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
  color: var(--text-primary);
  transform: scale(var(--press-scale));
}

@media (hover: hover) and (pointer: fine) {
  .news-back:hover {
    background: color-mix(in srgb, var(--text-primary) 7%, transparent);
    color: var(--text-primary);
  }

  .news-back:hover .icon {
    transform: translateX(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-back,
  .news-back .icon {
    transition: none;
  }

  .news-back:active {
    transform: none;
  }
}

.news-author-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.news-author-badges .user-badge {
  position: relative;
  z-index: 1;
}

.news-post-head {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
}

.news-post-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: var(--weight-bold);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  overflow-wrap: anywhere;
}

.news-cover {
  margin: 1.75rem 0 0;
}

.news-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.news-post-body {
  margin-top: 2rem;
}

.news-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.news-link-button {
  min-height: 2.75rem;
  max-width: 100%;
}

dialog.modal.news-lightbox {
  width: min(64rem, calc(100vw - 2rem));
}

.news-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  border-radius: var(--radius-md);
  object-fit: contain;
}

@media (max-width: 600px) {
  .news-card,
  .news-card.has-cover {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 1rem;
  }

  .news-card-cover {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .news-card-title {
    font-size: var(--text-lg);
  }
}
