/* ===== Sem janelinhas: anos 2000 estilo "Web 2.0" (degrade com brilho, cantos arredondados, sombra suave) ===== */
:root {
  --gl-line: #b7c4e2;
  --gl-line-2: #9fb0d6;
  --gl-ink: #12173a;
  --gl-stripe: linear-gradient(
    90deg,
    var(--accent-red),
    var(--accent-yellow),
    var(--accent-green),
    var(--accent-blue),
    var(--accent-purple)
  );
}
/* --- faixa "Confira" da home --- */
.hb-janela {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--gl-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #f7faff, #e4ecf9);
  box-shadow:
    inset 0 1px 0 #fff,
    0 12px 30px #12173a1f,
    0 2px 6px #12173a14;
}
.hb-janela:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--gl-stripe);
}
.hb-barra {
  height: auto;
  gap: 10px;
  padding: 24px 28px 0;
  background: none;
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  user-select: auto;
}
.hb-barra .hb-ic {
  display: none;
}
.hb-barra:before {
  content: "";
  flex: none;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent-yellow);
}
.hb-corpo {
  margin-top: 0;
  padding: 6px 28px 26px;
  background: none;
  box-shadow: none;
}
.hb-corpo:before {
  display: none;
}
.hb-tile {
  border: 1px solid var(--gl-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f1f5fc 52%, #e1e9f7 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 8px #12173a1a;
}
.hb-tile:hover {
  background: linear-gradient(180deg, #fff 0%, #f7faff 52%, #e9f0fb 100%);
  border-color: var(--gl-line-2);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 18px #12173a2b;
}
.hb-tile:active {
  box-shadow: inset 0 2px 4px #12173a26;
}
.hb-icone {
  border: 0;
  border-radius: 11px;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.38) 0,
    rgba(255, 255, 255, 0) 55%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 5px #12173a40;
}
@media (max-width: 900px) {
  .hb-barra {
    padding: 20px 18px 0;
  }
  .hb-corpo {
    padding: 6px 18px 20px;
  }
}
/* --- pop-ups de matéria e catálogo: cartão com brilho, sem barra de título --- */
.catalogo-modal-panel.rt-modal,
.article-reader-panel.rt-modal {
  position: relative;
  padding: 0;
  border: 1px solid var(--gl-line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #f4f7fd);
  box-shadow:
    0 28px 70px #12173a59,
    0 3px 10px #12173a26;
}
.catalogo-modal-panel.rt-modal:before,
.article-reader-panel.rt-modal:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  z-index: 4;
  background: var(--gl-stripe);
}
.rt-modal .rt-barra {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  height: auto;
  padding: 0;
  gap: 0;
  background: none;
}
.rt-modal .rt-barra-ic,
.rt-modal .rt-barra-titulo {
  display: none;
}
.rt-modal .rt-fechar {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gl-line-2);
  border-radius: 50%;
  color: var(--gl-ink);
  background: linear-gradient(180deg, #fff 0%, #eef3fb 50%, #d9e3f5 52%, #e6edf9 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 8px #12173a40;
}
.rt-modal .rt-fechar svg {
  width: 11px;
  height: 11px;
}
.rt-modal .rt-fechar:hover {
  background: linear-gradient(180deg, #fff 0%, #f6f9fe 50%, #e5edf9 52%, #eef3fb 100%);
}
.rt-modal .rt-fechar:active {
  background: linear-gradient(180deg, #d9e3f5, #eef3fb);
  box-shadow: inset 0 2px 4px #12173a33;
}
.rt-modal .rt-corpo {
  margin-top: 0;
  background: none;
  box-shadow: none;
}
.catalogo-modal-panel .rt-corpo {
  padding: 36px 38px 32px;
}
.catalogo-modal-panel h3#modal-item-title {
  padding-right: 46px;
}
.article-reader-panel .rt-corpo {
  padding: 0;
}
.article-reader-media {
  margin: 0;
}
/* --- botões das páginas Catálogo e Matérias: gloss 2000s em vez de bisel cinza --- */
.catalogo-filter-btn,
.pagination-btn,
.catalogo-btn-action,
.home-article-btn,
.btn-grayscale-outline {
  border: 1px solid var(--gl-line-2);
  border-radius: 9px;
  color: var(--gl-ink);
  text-shadow: 0 1px 0 #fff;
  background: linear-gradient(180deg, #fff 0%, #eef3fb 48%, #d9e3f5 52%, #e8eef9 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 3px #12173a24;
  transition:
    box-shadow 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}
.catalogo-filter-btn:hover,
.pagination-btn:hover:not(:disabled),
.catalogo-btn-action:hover,
.home-article-btn:hover,
.btn-grayscale-outline:hover:hover {
  border: 1px solid var(--gl-line-2);
  color: var(--gl-ink);
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fff 0%, #f6f9fe 48%, #e3ebf8 52%, #f0f4fb 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 5px 12px #12173a2e;
}
.catalogo-filter-btn:active,
.pagination-btn:active:not(:disabled),
.catalogo-btn-action:active,
.home-article-btn:active,
.btn-grayscale-outline:active:active {
  transform: none;
  background: linear-gradient(180deg, #d9e3f5, #eef3fb);
  box-shadow: inset 0 2px 4px #12173a2e;
}
.catalogo-filter-btn.active,
.catalogo-filter-btn.active:hover,
.pagination-btn.active,
.pagination-btn.active:hover:not(:disabled) {
  border: 1px solid #d3a313;
  color: var(--gray-950);
  transform: none;
  text-shadow: 0 1px 0 #fff3b8;
  background: linear-gradient(180deg, #ffeaa0 0%, #f9d658 48%, #f1bf25 52%, #f7d04d 100%);
  box-shadow:
    inset 0 1px 0 #fff6c9,
    0 2px 6px #b8890f55;
}
.catalogo-filter-btn:focus-visible,
.pagination-btn:focus-visible,
.catalogo-btn-action:focus-visible,
.home-article-btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
.btn-grayscale-solid,
.btn-read-more {
  border: 1px solid #0d1238;
  border-radius: 9px;
  color: #fff;
  text-shadow: 0 -1px 0 #0d1238;
  background: linear-gradient(180deg, #4152a3 0%, #25357f 48%, #16215a 52%, #21307a 100%);
  box-shadow:
    inset 0 1px 0 #ffffff40,
    0 3px 8px #12173a47;
}
.btn-grayscale-solid:hover,
.btn-read-more:hover {
  border-color: #0d1238;
  transform: translateY(-1px);
  background: linear-gradient(180deg, #5063b8 0%, #2d3f94 48%, #1b2868 52%, #283888 100%);
  box-shadow:
    inset 0 1px 0 #ffffff55,
    0 7px 16px #12173a59;
}
.btn-grayscale-solid:active,
.btn-read-more:active {
  transform: none;
  background: linear-gradient(180deg, #16215a, #25357f);
  box-shadow: inset 0 2px 4px #0006;
}
/* pop-ups acima do menu fixo (antes o menu, z-index 9999, ficava por cima do pop-up) */
#catalogo-modal,
#article-reader-modal {
  z-index: 10050;
}
