:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #677283;
  --line: #dbe1e8;
  --accent: #126b59;
  --accent-dark: #0c4d40;
  --danger: #a83232;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 64px;
  justify-content: space-between;
  padding: 0 28px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
}

.topnav {
  align-items: center;
  display: flex;
  gap: 16px;
}

.topnav form {
  margin: 0;
}

.topnav button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px;
}

.hero,
.panel,
.auth-card,
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  padding: 36px;
}

.hero h1,
.section-head h1,
.auth-card h1 {
  letter-spacing: 0;
  margin: 0;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.1;
}

.hero p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 680px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.button {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.button:hover {
  background: var(--accent-dark);
}

.flash {
  border-radius: 6px;
  margin: 18px auto 0;
  max-width: 1064px;
  padding: 12px 16px;
}

.flash-error {
  background: #fff0f0;
  border: 1px solid #f0c4c4;
  color: var(--danger);
}

.flash-success {
  background: #ecfdf5;
  border: 1px solid #b7ead6;
  color: #0f6848;
}

.auth-wrap {
  display: grid;
  min-height: calc(100vh - 160px);
  place-items: center;
}

.auth-card {
  display: grid;
  gap: 18px;
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  line-height: 1.5;
  padding: 12px;
  resize: vertical;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.admin-nav a {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
}

.section-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stat {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat strong {
  font-size: 30px;
}

.panel {
  padding: 24px;
}

.panel h2,
.panel p {
  margin-top: 0;
}

.grid-two {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.form-grid {
  align-content: start;
  display: grid;
  gap: 16px;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-row-two {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-editor {
  margin-bottom: 18px;
}

.danger-panel {
  border-color: #f0c4c4;
}

.inline-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}

.link-button.danger,
.error-text {
  color: var(--danger);
}

.table-actions {
  text-align: right;
  white-space: nowrap;
}

.table-actions form {
  display: inline;
  margin: 0 0 0 10px;
}

.muted-line {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 4px;
  max-width: 360px;
  overflow-wrap: anywhere;
}

.muted-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tag {
  background: #eef2f7;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.tag-processed {
  background: #e6f7ef;
  color: #0f6848;
}

.tag-processing {
  background: #fff7d6;
  color: #7a5a00;
}

.tag-error {
  background: #ffe8e8;
  color: var(--danger);
}

.tag-queued,
.tag-processing {
  background: #fff7d6;
  color: #7a5a00;
}

.tag-completed {
  background: #e6f7ef;
  color: #0f6848;
}

.job-panel {
  margin-bottom: 18px;
}

.publication-toolbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.publication-toolbar p {
  margin: 0;
}

.job-panel p {
  margin: 10px 0 0;
}

.automation-list {
  display: grid;
  gap: 18px;
}

.automation-card {
  display: grid;
  gap: 18px;
}

.automation-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.automation-head h2,
.automation-block h3 {
  margin: 0;
}

.automation-block {
  display: grid;
  gap: 10px;
}

.automation-cost {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.automation-cost div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.automation-cost span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.automation-cost strong {
  font-size: 18px;
}

.metrics-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metrics-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  margin-bottom: 18px;
}

.metrics-wide {
  min-width: 0;
}

.metrics-panel {
  overflow: hidden;
}

.metrics-panel-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.metrics-panel-head h2 {
  margin: 0;
}

.metrics-panel-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metrics-bars {
  display: grid;
  gap: 12px;
}

.metrics-bar-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 92px minmax(0, 1fr) 58px 92px;
}

.metrics-bar-row span,
.metrics-bar-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.metrics-bar-row strong {
  font-size: 14px;
  text-align: right;
}

.metrics-bar-track {
  background: #edf2f7;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.metrics-bar-fill {
  background: linear-gradient(90deg, var(--accent), #3b82f6);
  border-radius: inherit;
  height: 100%;
}

.metrics-title-link {
  color: var(--accent);
  font-weight: 800;
}

.doc-meta {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.doc-meta div {
  display: grid;
  gap: 4px;
}

.doc-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.text-preview {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  max-height: 72vh;
  overflow: auto;
  padding: 18px;
  white-space: pre-wrap;
}

.page-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.page-card-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.page-card img {
  display: block;
  height: auto;
  width: 100%;
}

.digest-panel {
  margin-top: 18px;
}

.digest-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.digest-panel h2,
.digest-panel h3 {
  margin-top: 0;
}

.digest-text {
  line-height: 1.7;
  white-space: pre-wrap;
}

.highlight-list {
  display: grid;
  gap: 14px;
  padding-left: 22px;
}

.highlight-list p {
  margin: 6px 0 0;
}

.facts-list {
  display: grid;
  gap: 14px;
}

.fact-card {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 18px;
}

.fact-rank {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.fact-body h2 {
  font-size: 20px;
  letter-spacing: 0;
  margin: 0;
}

.fact-body p {
  line-height: 1.6;
  margin: 10px 0 14px;
}

.fact-meta,
.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fact-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.source-pill {
  background: #eef2f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}

.fact-actions {
  margin-bottom: 12px;
}

.fact-detail-head {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.fact-detail-head div {
  display: grid;
  gap: 4px;
}

.fact-detail-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-panel {
  margin-top: 18px;
}

.article-text {
  font-size: 17px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.public-news-body {
  background: #f3f5f7;
}

.public-news-page {
  max-width: none;
  padding-top: 34px;
}

.news-public,
.news-article {
  margin: 0 auto;
  max-width: 980px;
}

.news-public-head {
  align-items: end;
  border-bottom: 2px solid #111827;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 18px 0 24px;
}

.news-public-head h1,
.news-article h1 {
  color: #111827;
  font-size: 46px;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.news-public-head p {
  color: #6b7280;
  font-size: 15px;
  font-weight: 800;
  margin: 10px 0 0;
}

.news-date-form {
  margin: 0;
  min-width: 190px;
}

.news-date-form label {
  color: #374151;
}

.news-date-form select {
  background: #ffffff;
  border-color: #cfd7df;
}

.news-list {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}

.news-item {
  align-items: start;
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 22px 26px;
}

.news-item + .news-item {
  border-top: 1px solid var(--line);
}

.news-item:hover {
  background: #fbfcfd;
}

.news-date {
  color: #6b7280;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-title {
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
}

.news-title-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.news-inline-sources {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
}

.news-inline-sources img,
.news-inline-sources span {
  background: #ffffff;
  border: 1px solid #dbe1e8;
  border-radius: 50%;
  height: 24px;
  width: 24px;
}

.news-inline-sources img {
  object-fit: contain;
  padding: 3px;
}

.news-inline-sources span {
  align-items: center;
  color: #6b7280;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
}

.news-empty {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 28px;
}

.news-empty p {
  margin: 0;
}

.news-article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
  max-width: 1120px;
  padding: 46px;
}

.news-back {
  color: var(--accent);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 22px;
}

.news-article h1 {
  margin-bottom: 28px;
}

.news-article-date {
  color: #6b7280;
  font-size: 14px;
  font-weight: 900;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.news-article-body {
  color: #1f2937;
  font-size: 19px;
  line-height: 1.78;
  white-space: pre-wrap;
}

.news-article-layout {
  align-items: start;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1fr) 190px;
}

.news-source-box {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  position: sticky;
  top: 24px;
}

.news-source-box > span {
  color: #6b7280;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.news-source-list {
  display: grid;
  gap: 8px;
}

.news-source-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #374151;
  display: flex;
  gap: 9px;
  min-height: 36px;
  padding: 6px 4px;
}

.news-source-link:hover {
  background: #f7f8fa;
  border-color: #eef2f7;
}

.news-source-link img {
  border-radius: 4px;
  height: 20px;
  width: 20px;
}

.news-source-link strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.error-box {
  background: #111827;
  border-radius: 6px;
  color: #f9fafb;
  overflow: auto;
  padding: 16px;
}

@media (max-width: 760px) {
  .topbar,
  .hero,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
  }

  .topbar {
    gap: 12px;
    padding: 18px;
  }

  .page {
    padding: 18px;
  }

  .public-news-page {
    padding-top: 22px;
  }

  .hero {
    padding: 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-stats,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metrics-bar-row {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .metrics-bar-row strong {
    text-align: left;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .form-row-two {
    grid-template-columns: 1fr;
  }

  .doc-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publication-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .fact-detail-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .news-public-head h1,
  .news-article h1 {
    font-size: 32px;
  }

  .news-public-head {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .news-item {
    gap: 8px;
    min-height: 74px;
    padding: 18px;
  }

  .news-title {
    font-size: 18px;
  }

  .news-title-row {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .news-inline-sources {
    justify-content: flex-start;
  }

  .news-article {
    padding: 24px;
  }

  .news-article-layout {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .news-source-box {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
    position: static;
  }

  .news-source-list {
    display: flex;
    flex-wrap: wrap;
  }

  .news-source-link {
    border-color: #eef2f7;
    padding: 6px 8px;
  }

  .news-article-body {
    font-size: 17px;
  }
}

/* ==============================================
   NEWS HUB BRASIL — ESTILO JORNAL v2
   ============================================== */

:root {
  --hub-red: #c41230;
  --hub-ink: #111111;
  --hub-dark: #222222;
  --hub-mid: #555555;
  --hub-muted: #888888;
  --hub-rule: #cccccc;
  --hub-light-rule: #e5e5e5;
  --hub-paper: #fafaf8;
}

.public-news-body {
  background: var(--hub-paper);
}

.public-news-page {
  max-width: none;
  padding: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MASTHEAD — jornal clássico, branco
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hub-masthead {
  background: #ffffff;
  border-top: 4px solid var(--hub-red);
  border-bottom: 8px double var(--hub-ink);
  padding: 22px 28px 18px;
  text-align: center;
}

.hub-masthead-inner {
  margin: 0 auto;
  max-width: 1200px;
}

.hub-logo {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 10px;
}

.hub-logo-line {
  background: var(--hub-ink);
  flex: 1;
  height: 2px;
  max-width: 180px;
}

.hub-masthead h1 {
  color: var(--hub-ink);
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 68px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin: 0;
}

.hub-masthead-tagline {
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  margin: 10px 0 5px;
  text-transform: uppercase;
}

.hub-masthead-date {
  color: var(--hub-muted);
  font-size: 13px;
  font-style: italic;
  margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BARRA DE DATAS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hub-datebar {
  background: #ffffff;
  border-bottom: 2px solid var(--hub-ink);
  overflow-x: auto;
  position: sticky;
  scrollbar-width: none;
  top: 0;
  z-index: 200;
}

.hub-datebar::-webkit-scrollbar {
  display: none;
}

.hub-datebar-inner {
  align-items: center;
  display: flex;
  gap: 0;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 28px;
}

.hub-datebar-label {
  color: var(--hub-muted);
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-right: 14px;
  text-transform: uppercase;
}

.hub-date-pill {
  border-bottom: 3px solid transparent;
  color: var(--hub-mid);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 10px 13px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.hub-date-pill:hover {
  color: var(--hub-ink);
}

.hub-date-pill.is-active {
  border-bottom-color: var(--hub-red);
  color: var(--hub-red);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CATEGORIAS — sem fundo, só texto vermelho
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hub-cat-badge {
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--hub-red);
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 0;
  text-transform: uppercase;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ÁREA DE CONTEÚDO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hub-wrap {
  background: var(--hub-paper);
  min-height: 60vh;
  padding: 32px 0 80px;
}

.hub-inner {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 28px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MATÉRIA DESTAQUE — editorial, sem caixa
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hub-featured {
  background: transparent;
  border: none;
  border-top: 4px solid var(--hub-ink);
  margin-bottom: 0;
  padding: 22px 0 30px;
}

.hub-featured-top {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.hub-featured-label {
  color: var(--hub-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.hub-featured h2 {
  color: var(--hub-ink);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.14;
  margin: 0 0 14px;
}

.hub-featured h2 a {
  color: inherit;
  text-decoration: none;
}

.hub-featured h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--hub-rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hub-featured-excerpt {
  color: #333;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 22px;
  max-width: 780px;
}

.hub-featured-footer {
  align-items: center;
  border-top: 1px solid var(--hub-light-rule);
  display: flex;
  gap: 18px;
  padding-top: 16px;
}

.hub-featured-cta {
  color: var(--hub-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.15s;
}

.hub-featured-cta:hover {
  opacity: 0.75;
}

.hub-featured-sources {
  align-items: center;
  display: flex;
  gap: 6px;
}

.hub-featured-sources a {
  display: flex;
}

.hub-featured-sources img {
  background: #fff;
  border: 1px solid var(--hub-light-rule);
  border-radius: 50%;
  height: 24px;
  object-fit: contain;
  padding: 2px;
  transition: border-color 0.15s;
  width: 24px;
}

.hub-featured-sources a:hover img {
  border-color: var(--hub-rule);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SEPARADOR DE SEÇÃO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hub-section-label {
  align-items: center;
  color: var(--hub-muted);
  display: flex;
  font-size: 10px;
  font-weight: 700;
  gap: 16px;
  letter-spacing: 2.5px;
  margin: 36px 0 0;
  text-transform: uppercase;
}

.hub-section-label::before,
.hub-section-label::after {
  background: var(--hub-rule);
  content: '';
  flex: 1;
  height: 1px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GRID DE NOTÍCIAS — colunas com réguas
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hub-grid {
  border-top: 1px solid var(--hub-ink);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.hub-card {
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 26px 26px 0;
}

.hub-card + .hub-card {
  border-left: 1px solid var(--hub-rule);
  padding-left: 26px;
}

/* Últimas da linha — sem borda direita */
.hub-card:nth-child(3n+3) {
  padding-right: 0;
}

/* Linha nova: sem borda esquerda para o 1o da linha */
.hub-card:nth-child(3n+1) {
  border-left: none;
  padding-left: 0;
}

/* Separador horizontal entre linhas do grid */
.hub-card:nth-child(n+4) {
  border-top: 1px solid var(--hub-light-rule);
  margin-top: 0;
  padding-top: 22px;
}

.hub-card:hover {
  background: transparent;
  box-shadow: none;
}

.hub-card h3 {
  color: var(--hub-ink);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.32;
  margin: 0;
}

.hub-card h3 a {
  color: inherit;
  text-decoration: none;
}

.hub-card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--hub-rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hub-card-excerpt {
  -webkit-box-orient: vertical;
  color: #444;
  display: -webkit-box;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  margin: 0;
  overflow: hidden;
}

.hub-card-footer {
  align-items: center;
  border-top: 1px solid var(--hub-light-rule);
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.hub-card-sources {
  align-items: center;
  display: flex;
  gap: 5px;
}

.hub-card-sources a {
  display: flex;
}

.hub-card-sources img {
  background: #fff;
  border: 1px solid var(--hub-light-rule);
  border-radius: 50%;
  height: 20px;
  object-fit: contain;
  padding: 2px;
  width: 20px;
}

.hub-card-sources span {
  align-items: center;
  background: #eeeeea;
  border-radius: 50%;
  color: #aaa;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.hub-card-readmore {
  color: var(--hub-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.15s;
}

.hub-card-readmore:hover {
  opacity: 0.7;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ESTADO VAZIO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hub-empty {
  color: #aaa;
  padding: 80px 0;
  text-align: center;
}

.hub-empty svg {
  display: block;
  margin: 0 auto 20px;
  stroke: #ccc;
}

.hub-empty h2 {
  color: #555;
  font-size: 22px;
  margin: 0 0 10px;
}

.hub-empty p { margin: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RODAPÉ DO HUB
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hub-footer {
  border-top: 1px solid var(--hub-rule);
  color: #aaa;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-top: 64px;
  padding-top: 22px;
  text-align: center;
  text-transform: uppercase;
}

.hub-footer p { margin: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PÁGINA DE ARTIGO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Barra de progresso de leitura */
.hub-progress {
  height: 2px;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.hub-progress-bar {
  background: var(--hub-red);
  height: 100%;
  transition: width 0.1s linear;
  width: 0;
}

/* Topbar do artigo */
.hub-article-masthead {
  background: #ffffff;
  border-bottom: 2px solid var(--hub-ink);
  border-top: 4px solid var(--hub-red);
  padding: 12px 28px;
}

.hub-article-masthead-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
}

.hub-article-brand {
  color: var(--hub-ink);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.hub-article-back {
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s;
}

.hub-article-back:hover {
  color: var(--hub-red);
}

/* Corpo do artigo */
.hub-article-wrap {
  background: var(--hub-paper);
  min-height: calc(100vh - 60px);
  padding: 56px 0 80px;
}

.hub-article-inner {
  margin: 0 auto;
  max-width: 720px;
  padding: 0 28px;
}

.hub-article {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

/* Cabeçalho centralizado, estilo editorial */
.hub-article-head {
  border-bottom: none;
  border-top: 8px double var(--hub-ink);
  padding: 28px 0 0;
  text-align: center;
}

.hub-article-head .hub-cat-badge {
  display: block;
  margin-bottom: 16px;
}

.hub-article-head h1 {
  color: var(--hub-ink);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.18;
  margin: 0 0 0;
}

.hub-article-meta {
  align-items: center;
  border-bottom: 1px solid var(--hub-rule);
  border-top: 1px solid var(--hub-rule);
  color: var(--hub-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  letter-spacing: 1.5px;
  margin-top: 20px;
  padding: 12px 0;
  text-transform: uppercase;
}

.hub-article-meta-dot {
  color: var(--hub-light-rule);
}

/* Texto do artigo */
.hub-article-body-wrap {
  padding: 36px 0 0;
}

.hub-article-body {
  color: #1a1a1a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.9;
  white-space: pre-wrap;
}

/* Fontes — rodapé limpo */
.hub-sources-section {
  background: transparent;
  border: none;
  border-top: 8px double var(--hub-ink);
  margin-top: 48px;
  padding: 28px 0 0;
}

.hub-sources-label {
  color: var(--hub-muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hub-sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-source-item {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--hub-light-rule);
  border-radius: 3px;
  color: var(--hub-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  padding: 8px 14px;
  text-decoration: none;
  transition: border-color 0.15s;
}

a.hub-source-item:hover {
  border-color: var(--hub-ink);
}

.hub-source-item img {
  border-radius: 2px;
  height: 18px;
  object-fit: contain;
  width: 18px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 960px) {
  .hub-masthead h1 { font-size: 52px; }

  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Reset nth-child regras para 2 colunas */
  .hub-card { padding: 20px 22px 24px 0; }
  .hub-card + .hub-card { padding-left: 22px; }
  .hub-card:nth-child(3n+1) { border-left: none; padding-left: 0; }
  .hub-card:nth-child(3n+3) { padding-right: 22px; }
  .hub-card:nth-child(n+4) { border-top: none; }

  .hub-card:nth-child(2n+1) { border-left: none; padding-left: 0; }
  .hub-card:nth-child(2n+2) { border-left: 1px solid var(--hub-rule); padding-left: 22px; }
  .hub-card:nth-child(n+3) { border-top: 1px solid var(--hub-light-rule); padding-top: 22px; }
}

@media (max-width: 640px) {
  .hub-masthead { padding: 16px 18px 14px; }
  .hub-masthead h1 { font-size: 36px; letter-spacing: -1px; }
  .hub-logo-line { max-width: 32px; }

  .hub-inner,
  .hub-datebar-inner { padding: 0 18px; }

  .hub-featured h2 { font-size: 28px; }
  .hub-featured-excerpt { font-size: 15px; }

  .hub-grid { grid-template-columns: 1fr; }

  /* Reset tudo para 1 coluna */
  .hub-card,
  .hub-card + .hub-card,
  .hub-card:nth-child(n) {
    border-left: none;
    border-top: 1px solid var(--hub-light-rule);
    padding: 20px 0;
  }

  .hub-card:first-child { border-top: none; }

  .hub-wrap { padding: 20px 0 60px; }

  .hub-article-head { text-align: left; }
  .hub-article-head h1 { font-size: 28px; }
  .hub-article-body { font-size: 17px; }
  .hub-article-inner { padding: 0 18px; }
  .hub-article-wrap { padding: 30px 0 60px; }
  .hub-article-masthead { padding: 10px 18px; }
  .hub-article-meta { justify-content: flex-start; }
}

/* ==============================================
   ADMIN — linguagem visual do Hub
   ============================================== */

.admin-news-body {
  background: var(--hub-paper);
  color: var(--hub-ink);
}

.admin-news-body .topbar {
  background: #ffffff;
  border-top: 4px solid var(--hub-red);
  border-bottom: 8px double var(--hub-ink);
  height: auto;
  padding: 18px 28px 16px;
}

.admin-news-body .brand {
  color: var(--hub-ink);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.admin-news-body .topnav {
  gap: 18px;
}

.admin-news-body .topnav a,
.admin-news-body .topnav button {
  color: var(--hub-mid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.admin-news-body .page {
  max-width: 1200px;
  padding: 24px 28px 80px;
}

.admin-news-body .admin-nav {
  background: #ffffff;
  border-bottom: 2px solid var(--hub-ink);
  border-top: 1px solid var(--hub-light-rule);
  gap: 0;
  margin: -24px -28px 30px;
  overflow-x: auto;
  padding: 0 28px;
}

.admin-news-body .admin-nav a {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--hub-mid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  padding: 13px 14px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-news-body .admin-nav a:hover {
  border-bottom-color: var(--hub-red);
  color: var(--hub-red);
}

.admin-news-body .section-head {
  align-items: start;
  border-top: 4px solid var(--hub-ink);
  margin-bottom: 20px;
  padding-top: 18px;
}

.admin-news-body .section-head h1,
.admin-news-body .panel h2,
.admin-news-body .fact-body h2 {
  color: var(--hub-ink);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.admin-news-body .section-head h1 {
  font-size: 42px;
  line-height: 1.05;
}

.admin-news-body .eyebrow {
  color: var(--hub-red);
  font-size: 10px;
  letter-spacing: 2.4px;
}

.admin-news-body .panel,
.admin-news-body .stat,
.admin-news-body .auth-card {
  background: #ffffff;
  border: 1px solid var(--hub-light-rule);
  border-radius: 0;
  box-shadow: none;
}

.admin-news-body .stat {
  border-top: 3px solid var(--hub-ink);
}

.admin-news-body .stat span,
.admin-news-body th,
.admin-news-body .muted-line,
.admin-news-body .muted-copy {
  color: var(--hub-muted);
}

.admin-news-body .stat strong {
  color: var(--hub-ink);
  font-family: 'Playfair Display', Georgia, serif;
}

.admin-news-body .button {
  background: var(--hub-red);
  border-radius: 3px;
  min-height: 40px;
}

.admin-news-body .button:hover {
  background: #9f1028;
}

.admin-news-body .secondary-button {
  border-color: var(--hub-rule);
  border-radius: 3px;
}

.admin-news-body input,
.admin-news-body select,
.admin-news-body textarea {
  border-color: var(--hub-rule);
  border-radius: 3px;
}

.admin-news-body table {
  background: #ffffff;
}

.admin-news-body th {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.admin-news-body td {
  vertical-align: top;
}

.admin-news-body .link-button,
.admin-news-body .metrics-title-link {
  color: var(--hub-red);
}

.raw-archive {
  border-top: 4px solid var(--hub-ink);
}

.raw-article-list {
  background: #ffffff;
}

.raw-article-row {
  border-bottom: 1px solid var(--hub-light-rule);
  display: grid;
  gap: 9px;
  padding: 24px 0;
}

.raw-article-row:first-child {
  padding-top: 20px;
}

.raw-article-kicker,
.raw-article-meta {
  align-items: center;
  color: var(--hub-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  font-weight: 900;
  gap: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.raw-article-kicker span + span::before {
  color: var(--hub-rule);
  content: '/';
  margin-right: 10px;
}

.raw-article-row h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  line-height: 1.16;
  margin: 0;
}

.raw-article-row h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--hub-rule);
  text-underline-offset: 4px;
}

.raw-article-row p {
  color: #333;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 860px;
}

.raw-article-meta a {
  color: var(--hub-red);
}

.raw-empty {
  background: #ffffff;
  border: 1px solid var(--hub-light-rule);
  padding: 28px;
}

.raw-empty h2 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0 0 8px;
}

.raw-detail-panel {
  border-top: 4px solid var(--hub-ink);
}

.raw-text-preview {
  background: #fff;
  border: 0;
  border-top: 1px solid var(--hub-light-rule);
  border-radius: 0;
  color: #222;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.72;
  max-height: none;
  padding: 22px 0 0;
}

@media (max-width: 760px) {
  .admin-news-body .topbar {
    gap: 10px;
    padding: 16px 18px 14px;
  }

  .admin-news-body .brand {
    font-size: 28px;
  }

  .admin-news-body .page {
    padding: 18px 18px 60px;
  }

  .admin-news-body .admin-nav {
    margin: -18px -18px 24px;
    padding: 0 18px;
  }

  .admin-news-body .section-head h1 {
    font-size: 32px;
  }

  .raw-article-row h2 {
    font-size: 22px;
  }
}
/* Public maintenance */
.maintenance-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  color: #151515;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(246,246,242,.94)),
    repeating-linear-gradient(90deg, rgba(21,21,21,.045) 0 1px, transparent 1px 84px);
}

.maintenance-shell {
  width: min(760px, 100%);
  text-align: center;
}

.maintenance-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 42px;
}

.maintenance-brand h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: .95;
  font-weight: 900;
  letter-spacing: 0;
}

.maintenance-line {
  width: min(120px, 18vw);
  height: 1px;
  background: #151515;
}

.maintenance-kicker {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8c1d18;
}

.maintenance-shell h2 {
  max-width: 680px;
  margin: 0 auto 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.maintenance-shell p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #56534d;
}

@media (max-width: 640px) {
  .maintenance-brand {
    gap: 10px;
    margin-bottom: 34px;
  }

  .maintenance-line {
    width: 42px;
  }
}
