/* News is a small editorial surface; existing directory typography and tokens win. */
.ai-news { margin: 0 0 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.news-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.news-section-heading h2 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.02em; }
.news-section-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.news-all { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; font-weight: 600; }
.news-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; align-items: start; }
.news-card { min-width: 0; }
.news-open { display: block; color: var(--text); text-decoration: none; }
.news-cover { position: relative; overflow: hidden; border-radius: 12px; background: #061020; aspect-ratio: 3 / 4; }
.news-image-count { position: absolute; inset-inline-end: 10px; bottom: 10px; padding: 4px 8px; border-radius: 5px; background: #061020d9; color: #fff; font-size: 12px; font-weight: 600; }
.news-cover img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .22s ease; }
.news-open:hover img { transform: scale(1.025); }
.news-card h3 { margin: 12px 0 8px; font-size: 16px; line-height: 1.55; font-weight: 650; overflow-wrap: anywhere; }
.news-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.news-card-meta span { font-weight: 600; }
.news-empty { grid-column: 1/-1; margin: 4px 0; padding: 22px 0; color: var(--muted); }
.news-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }
.news-source-note { color: var(--muted); font-size: 13px; line-height: 1.7; }
.news-archive > .news-source-note { margin-top: 28px; }
.news-modal-open { overflow: hidden; scrollbar-gutter: stable; }
.plugin-site .news-dialog { max-width: min(1100px,calc(100vw - 64px)); width: 1100px; max-height: calc(100dvh - 64px); padding: 0; border: 0; border-radius: 16px; color: var(--text); background: var(--surface); overflow: auto; }
.news-dialog::backdrop { background: #0f172ab8; backdrop-filter: blur(3px); }
.news-dialog-close { position: sticky; float: right; right: 12px; top: 12px; z-index: 2; width: 44px; min-height: 44px; margin: 12px 12px -56px 0; border: 1px solid var(--line); border-radius: 50% !important; background: #fff; color: #0f172a; font-size: 26px; line-height: 1; }
[dir=rtl] .news-dialog-close { float: left; margin: 12px 0 -56px 12px; }
.news-dialog-status { min-height: 220px; padding: 72px 28px 28px; line-height: 2; }
.news-dialog-status button,.news-dialog-status a { min-height: 44px; display: inline-flex; align-items: center; }
.news-story { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: start; }
.news-story-image { background: #eef2f6; align-self: stretch; }
.news-story-image img { display: block; width: 100%; height: auto; }
.news-gallery-full { display: block; touch-action: pan-y pinch-zoom; }
.news-gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px 0; }
.news-gallery-controls[hidden] { display: none; }
.news-gallery-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 22px; }
.news-gallery-controls button:disabled { opacity: .4; cursor: default; }
.news-gallery-dots { display: flex; gap: 8px; }
.news-gallery-dots button { font-size: 13px; font-weight: 600; }
.news-gallery-dots button[aria-pressed=true] { color: #fff; background: var(--brand); border-color: var(--brand); outline: 2px solid #fff; outline-offset: -4px; }
.news-gallery-label { margin: 8px 16px 0; color: var(--muted); font-size: 13px; text-align: center; }
.news-view-image { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.news-story-copy { padding: 38px 30px 30px; min-width: 0; }
.news-story-kicker { margin: 0 0 14px; padding-inline-end: 30px; color: var(--brand-dark); font-size: 13px; font-weight: 600; }
.news-story h1,.news-story h2 { margin: 0 0 18px; font-size: 26px; line-height: 1.45; overflow-wrap: anywhere; }
.news-story-summary { color: var(--text); font-weight: 600; font-size: 17px; line-height: 1.7; }
.news-story-body { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.news-story-body p { margin: 16px 0; }
.news-story-times { border-top: 1px solid var(--line); padding-top: 18px; margin: 24px 0 8px; color: var(--muted); font-size: 13px; }
.news-story-times div { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 5px; }
.news-story-times dd { margin: 0; }
.news-timezone { margin: 0 0 16px; font-size: 12px; color: var(--muted); }
.news-source-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.news-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.news-page .workspace { display: block !important; }
.news-page .news-story { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; margin-bottom: 36px; }
@media(max-width: 1023px) { .news-grid { gap: 16px; } .news-card h3 { font-size: 15px; } .news-story { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .news-story-copy { padding: 30px 20px 20px; } }
@media(max-width: 699px) {
 .ai-news { margin-bottom: 28px; padding-bottom: 24px; }
 .news-section-heading { align-items: flex-start; gap: 12px; margin-bottom: 14px; }
 .news-section-heading h2 { font-size: 21px; }
 .news-section-heading p { font-size: 13px; }
 .news-all { font-size: 12px; min-height: 44px; white-space: nowrap; gap: 3px; }
 .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
 .news-card h3 { font-size: 14px; line-height: 1.6; margin-top: 9px; }
 .news-card-meta { font-size: 11px; }
 .plugin-site .news-dialog { width: calc(100vw - 20px); max-width: none; max-height: calc(100dvh - 24px); border-radius: 12px; }
 .news-story { grid-template-columns: minmax(0,1fr); }
 .news-story-image img { width: 100%; height: auto; max-height: 65dvh; object-fit: contain; }
 .news-story-copy { padding: 24px 20px; }
 .news-story h1,.news-story h2 { font-size: 23px; }
}
@media(prefers-reduced-motion: reduce) { .news-cover img { transition: none; } }
