#news [hidden], .news-page main > [hidden] { display: none !important; }
#news .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#news .news-card {
  display: flex; flex-direction: column; min-height: 0; padding: 0;
  overflow: hidden; background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: 0 8px 24px rgba(12, 58, 66, .04);
}
#news .news-media {
  position: relative; flex: 0 0 auto; margin: 0; width: 100%;
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist);
}
#news .news-media img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center; transform: none;
}
#news .news-card__body { display: flex; flex: 1; flex-direction: column; padding: 26px; min-width: 0; }
#news .news-date { display: block; color: var(--muted); font-size: 13px; margin-bottom: 11px; }
#news .news-card h3 { font-size: 24px; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
#news .news-card h3 a { color: var(--ink-deep); font-weight: 800; }
#news .news-card h3 a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
#news .news-card__teaser { color: var(--muted); margin: 15px 0 24px; overflow-wrap: anywhere; }
#news .news-card__read { display: inline-flex; align-self: flex-start; margin-top: auto; padding-top: 8px; font-size: 15px; }
#news-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
#news-pagination { margin-top: 32px; text-align: center; }
#news-status { padding: 26px 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--white); color: var(--muted); }
#news-status.news-status--error { border-color: #d9b772; color: var(--ink); background: #fff9e8; }
.news-page #news { min-height: 50vh; padding-top: 70px; }
.news-page #news .section-heading { max-width: 850px; }
.news-page #news .section-heading h1 {
  color: var(--ink-deep); font-size: clamp(34px, 4.4vw, 55px); line-height: 1.1;
  margin: 0; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere;
}
.news-page .news-search { order: -1; width: 100%; margin-bottom: 8px; }
.news-page .news-search input {
  width: min(100%, 560px); min-height: 52px; border: 1px solid var(--border);
  border-radius: 13px; padding: 12px 18px; color: var(--ink); background: var(--white);
}
.news-page #news-actions:has(.news-search:not([hidden])) { margin-top: 0; margin-bottom: 28px; }
.news-page #news > .shell { display: flex; flex-direction: column; }
.news-page #news .section-heading { order: 0; }
.news-page #news-actions { order: 1; }
.news-page #news-status { order: 2; margin-bottom: 24px; }
.news-page #news-grid, .news-page #news-detail { order: 3; }
.news-page #news-pagination { order: 4; }
#news-detail { width: 100%; max-width: 850px; margin: 0; }
#news-detail .news-detail__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin: 0 0 26px; }
#news-detail .news-back { color: var(--teal); font-weight: 750; }
#news-detail .news-back:hover { text-decoration: underline; text-underline-offset: 4px; }
#news-detail .news-detail__top .news-date { margin: 0; }
#news-detail .news-detail__lead { color: var(--ink); font-size: 21px; line-height: 1.55; margin: 0 0 28px; }
#news-detail .news-detail__media { display: block; margin: 24px 0; overflow: hidden; border-radius: 18px; }
#news-detail .news-detail__media img { display: block; position: static; width: 100%; height: auto; max-height: 600px; object-fit: contain; transform: none; }
#news-detail .news-rich-text { font-size: 18px; line-height: 1.75; overflow-wrap: anywhere; }
#news-detail .news-rich-text p { margin: 0 0 20px; }
#news-detail .news-rich-text h2, #news-detail .news-rich-text h3, #news-detail .news-rich-text h4 {
  color: var(--ink-deep); line-height: 1.25; margin: 32px 0 15px; letter-spacing: -.02em;
}
#news-detail .news-rich-text h2 { font-size: 29px; }
#news-detail .news-rich-text h3 { font-size: 25px; }
#news-detail .news-rich-text a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
#news-detail .news-rich-text img { display: block; position: static; max-width: 100%; width: auto; height: auto; margin: 20px 0; transform: none; }
#news-detail .news-rich-text blockquote { margin: 25px 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--aqua); color: var(--muted); }
#news-detail .news-rich-text ul, #news-detail .news-rich-text ol { padding-left: 25px; }
#news-detail .news-rich-text table { display: block; width: 100%; overflow: auto; border-collapse: collapse; margin: 20px 0; }
#news-detail .news-rich-text th, #news-detail .news-rich-text td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
#news-detail .news-rich-text hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
#news-detail .news-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#news-detail .news-gallery .news-detail__media { margin: 0; }
#news-detail .news-player { display: block; max-width: 100%; width: 100%; margin: 24px 0; border-radius: 12px; }
#news-detail .news-resource-link { display: inline-block; margin: 16px 0; font-weight: 750; }
@media (max-width: 900px) {
  #news .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  #news .news-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #news .news-card__body { padding: 22px; }
  .news-page #news { padding-top: 44px; }
  #news-detail .news-detail__lead { font-size: 19px; }
  #news-detail .news-rich-text { font-size: 17px; }
  #news-detail .news-gallery { grid-template-columns: minmax(0, 1fr); }
}
