/* ═══════════════════════════════════════════════════════════════
   XX JEJUNOS 2026 — Portal Homepage Stylesheet
   Editorial, calm, typography-led. Inspirado em ge.globo.com:
   fundo branco, cor usada com moderação, tipografia carrega a
   hierarquia, fotografia como âncora visual.
   ═══════════════════════════════════════════════════════════════ */

/* ── Ink scale — títulos, subtítulos e textos editoriais ──────── */
:root {
  --portal-accent:      #0f766e;
  --portal-accent-soft: #ecfdf5;
  --portal-deep:        #10201f;
  --ink-primary:        #10201f;
  --ink-secondary:      #405653;
  --ink-muted:          #6b817d;
}
[data-bs-theme="dark"] {
  --portal-accent:      #2dd4bf;
  --portal-accent-soft: rgba(20, 184, 166, .14);
  --portal-deep:        #e7f8f5;
  --ink-primary:        #e7f8f5;
  --ink-secondary:      #b4cbc7;
  --ink-muted:          #829b97;
}

/* ── 0. Layout overrides ─────────────────────────────────────── */
body.portal-home > main.container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.portal-home main { padding: 0 !important; }
body.portal-home > footer { display: none !important; }

/* Páginas largas que reaproveitam a identidade do portal (Notícias,
   leitura de Informe) mas mantêm o rodapé padrão do site. */
body.portal-wide > main.container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.portal-wide main { padding: 2rem 0 3rem !important; }

/* ── 1. Utility container ────────────────────────────────────── */
.p-con {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2.5vw, 1.75rem);
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY KICKERS — reused em Últimas Notícias. Quiet, small-caps
   text, no background fill.
   ═══════════════════════════════════════════════════════════════ */
.news-list-cat {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1;
}
.news-list-cat.NOTICIA   { color: var(--brand-hover); }
.news-list-cat.RESULTADO { color: var(--success); }
.news-list-cat.AVISO     { color: #b45309; }
.news-list-cat.INFORME   { color: var(--ink-muted); }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.portal-hero {
  background:
    linear-gradient(180deg, rgba(236, 253, 245, .72), rgba(255, 255, 255, .96) 62%),
    var(--bg-surface);
  padding: 1.75rem 0 0;
}
[data-bs-theme="dark"] .portal-hero {
  background:
    linear-gradient(180deg, rgba(20, 184, 166, .10), rgba(10, 15, 30, .96) 62%),
    var(--bg-base);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 1199px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 991px)  { .hero-grid { grid-template-columns: 1fr; } }

/* Main hero card */
.hero-main-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  min-height: 560px;
  background: #10201f;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.hero-main-card:hover .hero-media img { transform: scale(1.035); }
.hero-media::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.68) 100%);
  pointer-events: none;
}
.hero-main-body {
  position: absolute;
  z-index: 1;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.75rem 1.6rem;
  background: transparent;
}
.hero-main-title {
  color: #fff;
  font-size: clamp(1.5rem, 3.1vw, 2.2rem);
  font-weight: 800;
  line-height: 1.13;
  margin: 0;
  letter-spacing: -.02em;
}

/* Hero no-image fallback — calm single-tone panel */
.hero-main-card.no-image {
  background:
    linear-gradient(135deg, #10201f 0%, #134e4a 62%, #2563eb 100%);
  display: flex;
  align-items: center;
}
.hero-main-card.no-image .hero-main-body {
  position: static;
  width: 100%;
  padding: 2.5rem 2rem;
}

/* Side stack */
.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  height: 100%;
}

/* ---- Base do card lateral ---- */
.hero-side-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  flex: 1;
  min-height: 92px;
  display: flex;
  align-items: stretch;
  transition: transform .2s;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.hero-side-item:hover { transform: translateY(-1px); }

/* ---- COM IMAGEM ---- */
.hero-side-item.has-image {
  background: #10201f;
  border: none;
  border-radius: 0;
}
.hero-side-item.has-image .hero-side-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #10201f;
  transition: transform .5s ease;
}
.hero-side-item.has-image:hover .hero-side-thumb { transform: scale(1.05); }
.hero-side-item.has-image::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 65%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%);
  pointer-events: none;
}
.hero-side-item.has-image .hero-side-body {
  position: absolute;
  z-index: 1;
  bottom: 0; left: 0; right: 0;
  padding: .65rem .85rem;
}
.hero-side-item.has-image .hero-side-title {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.28;
  letter-spacing: -.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-text-stroke: .5px rgba(0,0,0,.65);
}

/* ---- SEM IMAGEM: neutro, sem cor por categoria ---- */
.hero-side-item:not(.has-image) { padding: 0; gap: 0; }
.hero-side-placeholder {
  width: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--ink-muted);
  background: var(--bg-subtle);
  border-right: 1px solid var(--border);
}
.hero-side-body { flex: 1; min-width: 0; padding: .6rem .8rem; display: flex; align-items: center; }
.hero-side-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAR — thin inline strip, no colored icon rainbow
   ═══════════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-surface);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.stats-bar .p-con { display: flex; justify-content: center; }

.stats-inner {
  display: inline-flex;
  align-items: stretch;
  flex-wrap: nowrap;
  min-width: 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 0 2rem;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.stat-item:last-child { border-right: none; }

.stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-lbl {
  font-size: .68rem;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 767px) {
  .stats-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: .85rem;
  }
  .stat-item {
    padding: 0 .5rem;
    border-right: none;
    justify-content: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS — typography carries hierarchy, no colored bars
   ═══════════════════════════════════════════════════════════════ */
.p-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.p-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: -.015em;
}
.p-section-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
}
.p-section-link:hover { color: var(--brand); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   MAIN FEED SECTION (2-col + sidebar)
   ═══════════════════════════════════════════════════════════════ */
.portal-feed {
  padding: 2.5rem 0 2.5rem;
  background: linear-gradient(180deg, var(--bg-surface), rgba(236, 253, 245, .42));
}
[data-bs-theme="dark"] .portal-feed {
  background:
    linear-gradient(180deg, var(--bg-base), rgba(20, 184, 166, .07));
}
.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 1199px) { .feed-layout { grid-template-columns: minmax(0, 1fr) 280px; } }
@media (max-width: 1023px) { .feed-layout { grid-template-columns: 1fr; } }

/* ── Feed blocks ── */
.feed-block { margin-bottom: 2.5rem; }
.feed-block:last-child { margin-bottom: 0; }

/* ── Widget footer ── */
.widget-footer {
  padding: .6rem 1rem;
  border-top: 1px solid var(--border);
}

/* ── News list — quiet dividers instead of boxed shadow cards ── */
.news-list-item {
  position: relative;
  display: block;
  text-decoration: none;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.news-list-item:first-child { padding-top: 0; }
.news-list-item:last-child { border-bottom: none; padding-bottom: 0; }

/* ── Com imagem: thumb à direita, texto à esquerda (estilo editorial) ── */
.news-list-item.has-image {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
}
.news-list-media {
  position: relative;
  width: 240px;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
}
.news-list-item.has-image .news-list-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.news-list-item.has-image:hover .news-list-img { transform: scale(1.05); }
.news-list-item.has-image .news-list-body { flex: 1; min-width: 0; }
.news-list-item.has-image .news-list-cat { margin-bottom: .35rem; display: block; }
.news-list-item.has-image .news-list-title { -webkit-line-clamp: 3; }

/* ── Sem imagem: placeholder neutro + texto ── */
.news-list-item:not(.has-image) {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
}
.news-list-placeholder {
  width: 240px;
  height: 160px;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--ink-muted);
  background: var(--bg-subtle);
}
.news-list-item:not(.has-image) .news-list-body { flex: 1; min-width: 0; }

/* ── Partes comuns ── */
.news-list-cat {
  display: block;
  margin-bottom: .4rem;
}
.news-list-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-time {
  font-size: .82rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}

@media (max-width: 575px) {
  .news-list-item.has-image,
  .news-list-item:not(.has-image) {
    gap: .9rem;
  }
  .news-list-media,
  .news-list-placeholder {
    width: clamp(96px, 34vw, 132px);
    height: clamp(78px, 25vw, 96px);
  }
  .news-list-title { font-size: 1.05rem; -webkit-line-clamp: 3; }
}

/* ── Result cards — quiet grid, no colored icon fill ── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 575px) { .results-grid { grid-template-columns: 1fr; } }
.result-card {
  background: var(--bg-surface);
  padding: 1rem 1.1rem;
  text-decoration: none;
  display: flex;
  gap: .8rem;
  align-items: center;
  transition: background .15s;
}
.result-card:hover { background: var(--bg-subtle); }
.result-title {
  font-size: .93rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .2rem;
}
.result-time { font-size: .7rem; color: var(--ink-muted); }

/* ── Comunicado list — quiet dividers, no filled colored bar ── */
.comunicado-item {
  display: block;
  text-decoration: none;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}
.comunicado-item:first-child { padding-top: 0; }
.comunicado-item:last-child { border-bottom: none; padding-bottom: 0; }
.comunicado-title {
  font-size: .96rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .25rem;
}
.comunicado-meta { font-size: .72rem; color: var(--ink-muted); }

/* ═══════════════════════════════════════════════════════════════
  SIDEBAR WIDGETS
  ═══════════════════════════════════════════════════════════════ */
.portal-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.portal-widget:last-child { margin-bottom: 0; }
.widget-head {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.widget-head-title {
  font-size: .85rem;
  font-weight: 800;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.widget-head-link {
  font-size: .7rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
}
.widget-head-link:hover { color: var(--brand); text-decoration: underline; }
.widget-body { padding: .75rem 1rem; }

/* Medal mini-table */
.medal-mini { width: 100%; border-collapse: collapse; }
.medal-mini th {
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-muted);
  font-weight: 700;
  padding: .25rem .35rem .4rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.medal-mini td {
  padding: .4rem .35rem;
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  vertical-align: middle;
}
.medal-mini tr:last-child td { border-bottom: none; }
.medal-mini .rank { color: var(--ink-muted); font-size: .72rem; font-weight: 700; }
.medal-mini .escola-name {
  color: var(--ink-primary);
  font-weight: 600;
  font-size: .84rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.medal-mini .escola-name:hover { color: var(--brand); text-decoration: underline; }
.mn { text-align: center; font-weight: 800; font-size: .87rem; color: var(--ink-secondary); }

/* Aviso list */
.aviso-item {
  display: flex;
  gap: .55rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  text-decoration: none;
}
.aviso-item:first-child { padding-top: 0; }
.aviso-item:last-child { border-bottom: none; padding-bottom: 0; }
.aviso-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b45309;
  flex-shrink: 0;
  margin-top: .35rem;
}
.aviso-text {
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aviso-dt { font-size: .68rem; color: var(--ink-muted); }

/* Quick links — single neutral tone, not a rainbow of icon colors */
.quick-link-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: .85rem;
  font-weight: 500;
  transition: background .12s, color .12s;
}
.quick-link-item:hover { background: var(--bg-subtle); color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════
   ESCOLAS SECTION — flat grid per região, sem acordeão
   ═══════════════════════════════════════════════════════════════ */
.portal-escolas {
  background:
    linear-gradient(180deg, rgba(236, 253, 245, .48), var(--bg-surface));
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}
[data-bs-theme="dark"] .portal-escolas {
  background:
    linear-gradient(180deg, rgba(20, 184, 166, .07), var(--bg-base));
}

.escolas-regions {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.escolas-region-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-muted);
  margin: 0 0 .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.escolas-region-count {
  font-size: .68rem;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: .05rem .55rem;
}
.escolas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .6rem;
}
.escola-pill {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.escola-pill:hover { border-color: var(--brand); background: var(--bg-subtle); }
.escola-sigla {
  font-size: .72rem;
  font-weight: 700;
  color: var(--brand);
  min-width: 38px;
  flex-shrink: 0;
}
.escola-nome {
  font-size: .84rem;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════
   PORTAL FOOTER
   ═══════════════════════════════════════════════════════════════ */
.portal-footer {
  background:
    linear-gradient(135deg, #071413 0%, #10201f 58%, #0f172a 100%);
  color: rgba(255,255,255,.6);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 575px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .65rem;
  letter-spacing: -.02em;
}
.footer-desc {
  font-size: .8rem;
  color: rgba(255,255,255,.38);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-socials {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.footer-social {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.5);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  border: 1px solid rgba(255,255,255,.08);
  transition: background .15s, color .15s;
}
.footer-social:hover { background: rgba(255,255,255,.14); color: #fff; }
.footer-col-title {
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .9rem;
}
.footer-link {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  margin-bottom: .4rem;
  transition: color .12s;
  line-height: 1.5;
}
.footer-link:hover { color: rgba(255,255,255,.9); }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.06);
  margin: 0;
}
.footer-bottom {
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-copy {
  font-size: .73rem;
  color: rgba(255,255,255,.22);
}
.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-bottom-link {
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .12s;
}
.footer-bottom-link:hover { color: rgba(255,255,255,.7); }

/* ═══════════════════════════════════════════════════════════════
   CCO WIDGET — the one deliberate accent card in the sidebar
   ═══════════════════════════════════════════════════════════════ */
.portal-cco-widget { border: none; }
.portal-cco-card {
  padding: 1.15rem 1rem;
  background:
    linear-gradient(135deg, #134e4a 0%, #0f766e 68%, #2563eb 100%);
}
.portal-cco-title {
  font-weight: 800;
  color: #fff;
  font-size: .85rem;
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.portal-cco-text {
  font-size: .77rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .85rem;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   MICRO-INTERACTIONS
   ═══════════════════════════════════════════════════════════════ */
.news-list-item:hover .news-list-title { color: var(--brand); }
.hero-side-item:not(.has-image):hover .hero-side-title { color: var(--brand); }
.comunicado-item:hover .comunicado-title { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════
   PÁGINA — Notícias (listagem): cabeçalho + filtros
   ═══════════════════════════════════════════════════════════════ */
.pub-page-header {
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pub-page-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -.02em;
  margin: 0 0 .4rem;
}
.pub-page-subtitle {
  font-size: .92rem;
  color: var(--ink-secondary);
  max-width: 60ch;
  margin: 0;
}
.pub-page-stats { display: flex; gap: 2rem; flex-shrink: 0; }
.pub-page-stat { text-align: right; }
.pub-page-stat .num { font-size: 1.4rem; font-weight: 800; color: var(--ink-primary); line-height: 1; }
.pub-page-stat .lbl {
  font-size: .66rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .3rem;
}

.pub-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.pub-filter {
  padding: .45rem 1.05rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.pub-filter:hover { border-color: var(--border-strong); background: var(--bg-subtle); }
.pub-filter.active { background: var(--ink-primary); border-color: var(--ink-primary); color: #fff; }
[data-bs-theme="dark"] .pub-filter.active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #10201f;
}

/* ═══════════════════════════════════════════════════════════════
   PÁGINA — Leitura de Informe (artigo)
   ═══════════════════════════════════════════════════════════════ */
.pub-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}
.pub-breadcrumb a { color: var(--ink-secondary); text-decoration: none; }
.pub-breadcrumb a:hover { text-decoration: underline; }
.pub-breadcrumb .sep { color: var(--border-strong); }
.pub-breadcrumb .current { color: var(--ink-muted); }

.pub-article-media {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  margin-bottom: 2.25rem;
}
.pub-article-media img { width: 100%; height: 100%; max-height: 480px; object-fit: cover; display: block; }

.pub-article-col { max-width: 760px; margin: 0 auto; }

.pub-article-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}
.pub-article-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -.02em;
  line-height: 1.18;
  margin: 0 0 1.75rem;
}
.pub-article-body { font-size: 1rem; line-height: 1.85; color: var(--text-primary); }
.pub-article-body p { margin-bottom: 1.15em; }
.pub-article-body h2 { font-size: 1.3rem; font-weight: 700; margin: 1.6em 0 .5em; color: var(--ink-primary); }
.pub-article-body h3 { font-size: 1.1rem; font-weight: 700; margin: 1.3em 0 .4em; color: var(--ink-primary); }
.pub-article-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1.25rem auto;
}
.pub-article-body figure {
  max-width: 100% !important;
  margin: 1.35rem auto;
}
.pub-article-body figure img {
  margin: 0 auto;
}
.pub-article-body iframe,
.pub-article-body video {
  max-width: 100%;
}
.pub-article-body blockquote {
  border-left: 3px solid var(--ink-primary);
  padding: .3em 1.2em;
  margin: 1.3em 0;
  color: var(--ink-secondary);
  font-style: italic;
}
.pub-article-body ul, .pub-article-body ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.pub-article-body li { margin-bottom: .35em; }
.pub-article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.1em; }
.pub-article-body table td, .pub-article-body table th { padding: .5em .75em; border: 1px solid var(--border); }

.pub-article-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.pub-article-actions a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
}
.pub-article-actions a:hover { color: var(--ink-primary); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .hero-main-card { min-height: 400px; }
  .hero-media { min-height: 240px; }
  .hero-main-body { padding: 1.15rem 1.25rem 1.35rem; }
  .hero-main-title { font-size: 1.35rem; }
  .portal-hero { padding: 1rem 0 0; }
  .stats-bar { padding: 1rem 0; }
  .stat-val { font-size: 1.1rem; }
  .p-section-title { font-size: .95rem; }
  .pub-page-header { flex-direction: column; align-items: flex-start; }
  .pub-article-media { max-height: 260px; }
}
@media (max-width: 575px) {
  body.portal-wide main { padding: 1.25rem 0 2rem !important; }
  .p-section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }
  .hero-side-stack { gap: .6rem; }
  .hero-side-item { min-height: 76px; }
  .stats-inner {
    gap: .75rem;
  }
  .stat-item {
    min-width: 0;
  }
  .stat-lbl {
    overflow-wrap: anywhere;
  }
  .pub-article-actions {
    flex-direction: column;
    gap: .75rem;
  }
}

@media (max-width: 430px) {
  .hero-main-card { min-height: 320px; }
  .hero-main-body { padding: 1rem; }
  .hero-main-title { font-size: 1.18rem; }
  .hero-side-title { font-size: .82rem; }
  .news-list-item.has-image,
  .news-list-item:not(.has-image) {
    display: block;
  }
  .news-list-media,
  .news-list-placeholder {
    width: 100%;
    height: 160px;
    margin-bottom: .75rem;
  }
  .medal-mini th,
  .medal-mini td {
    padding-inline: .25rem;
    font-size: .74rem;
  }
  .medal-mini .rank {
    display: none;
  }
}

/* Linhas/itens clicáveis (data-href, ver static/js/main.js) — usado nas
   listas públicas de escola↔modalidade. */
[data-href] {
  cursor: pointer;
}
tr[data-href]:hover,
.list-group-item[data-href]:hover {
  background-color: var(--bs-tertiary-bg, rgba(0, 0, 0, .035));
}

/* Mobile: hero em pilha (imagem inteira em 1200x630 + titulo abaixo),
   em vez de cortar a capa num card alto com object-fit: cover. */
@media (max-width: 991px) {
  .hero-side-stack { height: auto; }
  .hero-side-item.has-image {
    flex: none;
    display: block;
    min-height: 0;
    background: #10201f;
  }
  .hero-side-item.has-image .hero-side-thumb {
    position: relative !important;
    inset: auto;
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: contain !important;
    object-position: center;
    background: #10201f;
  }
  .hero-side-item.has-image:hover .hero-side-thumb { transform: none; }
  .hero-side-item.has-image::after { display: none; }
  .hero-side-item.has-image .hero-side-body {
    position: static;
    padding: .75rem .9rem .85rem;
  }
  .hero-side-item.has-image .hero-side-title {
    -webkit-line-clamp: 3;
    -webkit-text-stroke: 0;
  }
}

@media (max-width: 767px) {
  .hero-main-card:not(.no-image) { min-height: 0; }
  .hero-main-card:not(.no-image) .hero-media {
    position: relative;
    inset: auto;
    min-height: 0;
    aspect-ratio: 1200 / 630;
  }
  .hero-main-card:not(.no-image) .hero-media img {
    height: 100% !important;
    object-fit: contain !important;
    background: #10201f;
  }
  .hero-main-card:not(.no-image) .hero-media::after { display: none; }
  .hero-main-card:not(.no-image) .hero-main-body {
    position: static;
    background: #10201f;
    padding: .9rem 1rem 1.1rem;
  }
}
@media (max-width: 430px) {
  .news-list-media { height: auto; aspect-ratio: 16 / 9; }
}
