/* Central de Noticias — escopo isolado da Home social e dos modulos profissionais. */
.news-intro { padding: 20px; }
.news-eyebrow { color: #18739b; text-transform: uppercase; font-size: .75rem; letter-spacing: .09em; font-weight: 800; }
.news-intro h2 { margin: 8px 0; font-size: clamp(1.3rem, 2.8vw, 1.9rem); line-height: 1.2; }
.news-intro p { margin: 0; line-height: 1.55; }
.news-intro-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.news-intro-footer .social-button { margin: 0; text-decoration: none; }
.news-feed-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.news-feed-controls label { font-weight: 700; font-size: .9rem; }
.news-feed-controls select { max-width: 205px; }
.news-card { padding: 19px 20px; border-top: 1px solid #dbe7ef; }
.news-card:first-child { border-top: none; }
.news-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .78rem; }
.news-category { padding: 5px 9px; font-weight: 800; color: #0a5371; background: #e6f4fa; border-radius: 999px; }
.news-pin { padding: 5px 9px; font-weight: 700; color: #6b4700; background: #fff1c9; border-radius: 999px; }
.news-date { margin-left: auto; color: #657b8d; font-size: .8rem; }
.news-card-title { margin: 12px 0 7px; font-size: 1.15rem; line-height: 1.35; overflow-wrap: anywhere; }
.news-card-summary { margin: 0 0 13px; line-height: 1.6; overflow-wrap: anywhere; }
.news-read { min-height: 38px; }
.news-empty { margin: 0; padding: 25px 18px; line-height: 1.6; }
.news-status { margin: 12px 18px; padding: 10px 12px; border-radius: 9px; color: #0c506f; background: #e7f5fa; line-height: 1.45; }
.news-status-error { color: #8d2a25; background: #ffeae7; }
.news-load-more { display: block; width: calc(100% - 36px); margin: 14px 18px 22px; }
.news-new-notice { width: 100%; padding: 11px; background: #e0f2fe; border: 1px solid #91c8ec; color: #064b75; font-weight: 700; cursor: pointer; }
.news-dialog { width: min(680px, calc(100vw - 24px)); max-height: min(90vh, 900px); border: 1px solid #d5e3ee; border-radius: 15px; background: #fff; color: #18364c; padding: 0; box-shadow: 0 26px 90px rgba(12,38,62,.28); }
.news-dialog::backdrop { background: rgba(0,19,38,.6); }
.news-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #dce6ed; padding: 15px 18px; }
.news-dialog-head h2 { font-size: 1.15rem; margin: 0; }
.news-dialog-close { appearance: none; font-size: 1.4rem; border: 0; border-radius: 8px; background: transparent; color: inherit; padding: 4px 9px; cursor: pointer; }
.news-dialog-body { padding: 20px; overflow-y: auto; max-height: calc(90vh - 70px); }
.news-reader-body { line-height: 1.78; white-space: pre-wrap; overflow-wrap: anywhere; }
.news-reader-meta { font-weight: 750; font-size: .85rem; color: #356b88; }
.news-source { display: inline-block; margin-top: 12px; text-decoration: underline; overflow-wrap: anywhere; }
.news-editor-form { display: grid; gap: 10px; }
.news-editor-form label { font-weight: 750; font-size: .85rem; }
.news-editor-form input:not([type=checkbox]), .news-editor-form textarea, .news-editor-form select {
  box-sizing: border-box; width: 100%; min-height: 42px; padding: 10px; border: 1px solid #aebfcd;
  border-radius: 8px; background: #fff; color: #1a3448; font: inherit;
}
.news-editor-form textarea { min-height: 150px; resize: vertical; }
.news-editor-form textarea[name=summary] { min-height: 75px; }
.news-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.news-editor-actions .social-button { flex: 1 1 130px; }
.news-editor-mine { margin-top: 22px; border-top: 1px solid #dae7ef; padding-top: 15px; }
.news-editor-mine h3 { margin: 0 0 8px; font-size: 1rem; }
.news-editor-row { display: block; width: 100%; text-align: left; cursor: pointer; color: inherit; background: transparent; border: 1px solid #dce6ef; padding: 10px; margin: 5px 0; border-radius: 8px; font: inherit; overflow-wrap: anywhere; }
.news-editor-row:hover, .news-editor-row:focus-visible { border-color: #188ac1; outline: 2px solid #8ccee9; }
.news-editor-warning { margin: 0; font-size: .84rem; color: #73501b; }
html[data-portal-theme="dark"] .news-dialog { background: #142b3c; color: #ecf5fc; border-color: #355369; }
html[data-portal-theme="dark"] .news-dialog-head, html[data-portal-theme="dark"] .news-editor-mine { border-color: #355369; }
html[data-portal-theme="dark"] .news-editor-row { border-color: #355369; }
html[data-portal-theme="dark"] .news-card { border-color: #355369; }
html[data-portal-theme="dark"] .news-card-top .news-date { color: #aac0d2; }
html[data-portal-theme="dark"] .news-editor-form input:not([type=checkbox]),
html[data-portal-theme="dark"] .news-editor-form textarea,
html[data-portal-theme="dark"] .news-editor-form select { background: #102334; color: #eef6fb; border-color: #50728b; }
html[data-portal-theme="dark"] .news-editor-warning { color: #ffdba0; }
html[data-portal-theme="dark"] .news-reader-meta { color: #95d4ef; }
@media (max-width: 900px) {
  .news-intro { padding: 17px 15px; }
  .news-feed-controls { align-items: stretch; flex-direction: column; }
  .news-feed-controls select { max-width: 100%; }
  .news-card { padding: 17px 15px; }
  .news-card-title { font-size: 1.1rem; }
  .news-dialog-body { padding: 16px; }
  .news-card-top { gap: 7px; }
  .news-date { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .news-dialog, .news-card { scroll-behavior: auto; }
}

#newsEditorOpen[hidden], #newsRetry[hidden], #newsLoadMore[hidden], #newsNewNotice[hidden], #newsArchiveButton[hidden] { display: none !important; }
