* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", Verdana, Arial, Helvetica, sans-serif; font-size: 14px; color: #2b2f36;
  background: linear-gradient(180deg, #eef2f7 0%, #e2e9f1 100%); min-height: 100vh; }

#wrapper { max-width: 1080px; margin: 22px auto 40px; background: #fff; border-radius: 12px;
  overflow: hidden; box-shadow: 0 12px 34px rgba(23, 73, 110, .16); }

#topo { background: linear-gradient(135deg, #0e3550 0%, #17496e 55%, #1d5a86 100%);
  color: #fff; padding: 22px 28px; display: flex; align-items: center; gap: 16px; }
#topo .marca { width: 54px; height: 54px; min-width: 54px; border-radius: 12px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  letter-spacing: 1px; color: #fff; }
#topo h1 { font-size: 20px; font-weight: 700; letter-spacing: .3px; }
#topo .sub { font-size: 12px; color: #bcd6e8; margin-top: 5px; }

#menu { background: #ffffff; border-bottom: 1px solid #dbe4ee; padding: 9px 26px; font-size: 13px;
  box-shadow: 0 1px 4px rgba(23,73,110,.06); }
#menu a { display: inline-block; color: #49627a; text-decoration: none; margin-right: 6px;
  padding: 6px 14px; border-radius: 999px; font-weight: 600; }
#menu a:hover { background: #edf4fb; color: #0b4f7a; }
#menu a.ativo { background: #17496e; color: #fff; }

#corpo { padding: 22px 28px 30px; }

h2 { font-size: 21px; color: #123c5c; letter-spacing: .2px; }
.head-block { border-bottom: 1px solid #e3eaf2; padding-bottom: 14px; margin-bottom: 6px; }
.aviso { font-size: 12.5px; color: #5a6b7b; margin-top: 8px; line-height: 1.6; }
.pill-note { display: inline-block; background: #fff3d6; color: #8a6116; border: 1px solid #f0d9a0;
  border-radius: 999px; padding: 2px 11px; font-size: 11.5px; font-weight: 600; margin-left: 6px; }

.tablescroll { overflow-x: auto; margin: 16px 0 10px; border: 1px solid #dfe7ef; border-radius: 10px; }
table.grid { width: 100%; border-collapse: collapse; min-width: 640px; }
table.grid thead th { background: linear-gradient(180deg, #1f5a86, #17496e); color: #fff;
  text-align: left; padding: 12px 14px; font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase; }
table.grid thead th.c-ano { width: 120px; }
table.grid thead th.c-vol { width: 110px; }
table.grid tbody td { padding: 9px 12px; border-top: 1px solid #edf2f7; vertical-align: middle; }
table.grid tbody tr:nth-child(even) { background: #f7fafc; }
table.grid tbody tr:hover { background: #eef5fb; }
table.grid td.ano { font-weight: 700; color: #33546e; font-size: 14px; white-space: nowrap; }
table.grid td.vol { color: #33546e; font-weight: 600; white-space: nowrap; }
table.grid td.nums-col { padding: 8px 12px; }

.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 34px;
  height: 34px; padding: 0 11px; margin: 3px 4px 3px 0; border-radius: 9px; font-weight: 700;
  font-size: 13.5px; color: #0b4f7a; background: #e6eef7; border: 1px solid #c9dcec;
  text-decoration: none; transition: transform .06s ease, box-shadow .12s ease, background .12s ease; }
a.chip:hover { background: #17496e; border-color: #17496e; color: #fff; transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(23,73,110,.25); text-decoration: none; }
.chip-off { background: #f0f3f6; border-color: #e3e8ee; color: #a2aeb9; cursor: not-allowed;
  box-shadow: none; }

table.grid tr.row-ativo td { background: #fffbea; border-top: 1px solid #f4e6c0; }
table.grid tr.row-ativo td.ano, table.grid tr.row-ativo td.vol { color: #8a6116; }
table.grid tr.row-ativo .chip { background: #ffe9a8; border-color: #e6c768; color: #6d4e08; }
table.grid tr.row-ativo a.chip:hover { background: #17496e; border-color: #17496e; color: #fff; }

.legenda { font-size: 12px; color: #8797a6; margin-top: 8px; }

#migalha { font-size: 12.5px; color: #68798a; margin-bottom: 14px; }
#migalha a { color: #15649b; text-decoration: none; }
#migalha a:hover { text-decoration: underline; }

.titulo-edicao { font-size: 15.5px; margin: 6px 0 4px; color: #2b2f36; }
.titulo-edicao strong { color: #123c5c; }

.caixa { margin-bottom: 15px; padding: 10px 12px 10px 10px; border: 1px solid #e7edf4;
  border-radius: 9px; background: #fdfdfe; transition: box-shadow .12s ease; }
.caixa:hover { box-shadow: 0 4px 14px rgba(23,73,110,.08); }
.caixa .num { color: #1e7d34; font-weight: 800; font-size: 13px; margin-right: 8px; }
.caixa img { vertical-align: middle; margin-right: 4px; }
.caixa a.link3 { color: #17496e; font-weight: 600; text-decoration: none; font-size: 13.5px; }
.caixa a.link3:hover { text-decoration: underline; color: #0b7bb8; }
.caixa .secao { display: block; color: #7a8b99; font-size: 11.5px; padding-left: 30px; margin: 3px 0; }
.caixa .autores { display: block; color: #4a5560; font-size: 11.5px; padding-left: 30px; }

.artigo-titulo { font-size: 19px; line-height: 1.35; color: #122d42; margin: 2px 0 4px; }
.artigo-titulo-en { font-size: 14px; color: #5f7080; margin-bottom: 4px; font-style: italic; }
.artigo-meta { font-size: 13px; color: #333a42; margin: 5px 0; line-height: 1.55; }
.artigo-meta .rotulo { font-weight: 700; color: #66788a; }
.artigo-corpo { margin: 10px 0 18px; font-size: 14px; line-height: 1.75; text-align: justify; color: #24282e; }
.artigo-corpo img { max-width: 100%; height: auto; margin: 10px auto; display: block; border-radius: 6px; }

.langlink { text-align: right; margin: 0 0 10px; }
.langlink a { color: #0b4f7a; font-weight: 700; font-size: 12.5px; text-decoration: none;
  background: #edf4fb; border: 1px solid #cfe0ee; padding: 5px 14px; border-radius: 999px; display: inline-block; }
.langlink a:hover { background: #17496e; color: #fff; }

.pdfbt { margin: 8px 0 4px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.btn-pdf { display: inline-flex; align-items: center; gap: 6px; background: #b3261e; color: #fff !important;
  padding: 7px 16px; font-size: 12px; font-weight: 700; border-radius: 7px; text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(179,38,30,.25); transition: background .12s ease, transform .06s ease; }
.btn-pdf:hover { background: #8f1d16; transform: translateY(-1px); text-decoration: none; }

hr.divisor { border: 0; border-top: 1px solid #dfe7ef; margin: 14px 0; }

.voltartopo { font-size: 12.5px; text-align: right; margin-top: 10px; }
.voltartopo a { color: #0b4f7a; text-decoration: none; font-weight: 600; }
.voltartopo a:hover { text-decoration: underline; }

.rodape { font-size: 12px; color: #6b7b8b; margin-top: 8px; padding: 14px 26px; text-align: center;
  background: #f5f8fb; border-top: 1px solid #dfe7ef; }
.rodape a { color: #17496e; }

.imggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px; margin: 12px 0; }
.imgcell { text-align: center; }
.imgcell .ref { font-size: 11px; color: #7a8b99; margin-bottom: 5px; }
.imgcell a.thumb-link { display: inline-block; }
.imgcell img { width: 110px; height: 110px; object-fit: cover; border: 1px solid #dfe7ef;
  border-radius: 8px; background: #f4f6f8; transition: transform .1s ease, box-shadow .12s ease; }
.imgcell img:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(23,73,110,.18); border-color: #17496e; }
.destaque-img { text-align: center; margin: 10px 0; }
.destaque-img img { max-width: 100%; border: 1px solid #dfe7ef; border-radius: 8px; }
.destaque-img .rotulo-fig { font-size: 12px; color: #33546e; margin-top: 4px; display: block; }
.img-meta { font-size: 13px; color: #333a42; margin: 5px 0; line-height: 1.55; }
.img-meta .rotulo { font-weight: 700; color: #66788a; }
.ano-cab { font-size: 15px; color: #123c5c; margin: 8px 0 2px; }
.ano-count { font-size: 12px; color: #7a8b99; }
.imgcell .tt { font-size: 11px; color: #33546e; margin-top: 4px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btn-buscar { font-family: inherit; font-size: 12px; font-weight: 700; padding: 7px 18px;
  background: #17496e; color: #fff; border: 0; border-radius: 6px; cursor: pointer; margin-left: 6px; }
.btn-buscar:hover { background: #0b7bb8; }
.caixa select, .caixa input[type=text] { font-family: inherit; font-size: 13px; padding: 6px 8px;
  border: 1px solid #c9dcec; border-radius: 6px; }
.caixa .rotulo { font-weight: 700; color: #66788a; margin-right: 6px; }
