/* Portal da Câmara — estilo. Azul institucional + dourado, Inter local. */

:root {
  --azul: #0b2a4a;
  --azul-2: #123c68;
  --dourado: #c9a227;
  --fundo: #f4f6f9;
  --papel: #ffffff;
  --texto: #1b2733;
  --suave: #55616e;
  --linha: #d8dee6;
  --foco: #ffbf47;
  --raio: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fundo);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul-2); }
a:hover { color: var(--azul); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; color: var(--azul); margin: 0 0 .5em; }

.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- atalhos eMAG --------------------------------------------------------- */
.pular { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 0; z-index: 100; }
.pular a { position: absolute; left: -9999px; background: var(--foco); color: #000; padding: .6rem 1rem; font-weight: 600; }
.pular a:focus { left: 0; top: 0; }
kbd { font: inherit; border: 1px solid currentColor; border-radius: 3px; padding: 0 .3em; }

/* --- faixa de demonstração e barra de acessibilidade ---------------------- */
.faixa-demo { background: #fff3cd; color: #5c4400; text-align: center; font-size: .8125rem; padding: .3rem 1rem; }
.barra-acess { background: #07213b; color: #fff; font-size: .875rem; }
.barra-acess__linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-block: .35rem; }
.barra-acess a { color: #fff; }
.barra-acess__botoes { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.barra-acess button {
  font: inherit; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 4px; padding: .15rem .6rem; cursor: pointer; min-height: 32px;
}
.barra-acess button:hover, .barra-acess button[aria-pressed="true"] { background: var(--dourado); color: #000; border-color: var(--dourado); }

/* --- cabeçalho ------------------------------------------------------------ */
.cabecalho { background: var(--papel); border-bottom: 4px solid var(--dourado); }
.cabecalho__linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.marca { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--azul); }
.marca__texto { display: flex; flex-direction: column; line-height: 1.1; }
.marca__sobre { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); }
.marca strong { font-size: 1.75rem; }

.busca { display: flex; min-width: min(100%, 320px); }
.busca input {
  flex: 1; font: inherit; padding: .6rem .8rem; border: 1px solid var(--linha); border-right: 0;
  border-radius: var(--raio) 0 0 var(--raio); min-height: 44px; background: #fff; color: var(--texto);
}
.busca button {
  min-width: 48px; border: 0; background: var(--azul); color: #fff; cursor: pointer;
  border-radius: 0 var(--raio) var(--raio) 0;
}
.busca .icone { margin: auto; width: 22px; height: 22px; }

/* --- menu principal ------------------------------------------------------- */
.menu { background: var(--azul); }
.menu-botao {
  display: none; width: 100%; font: inherit; font-weight: 600; color: #fff; background: transparent;
  border: 0; padding: .8rem 0; text-align: left; cursor: pointer; min-height: 44px;
}
.menu-botao__barras, .menu-botao__barras::before, .menu-botao__barras::after {
  display: inline-block; width: 22px; height: 2px; background: #fff; vertical-align: middle; position: relative;
}
.menu-botao__barras::before, .menu-botao__barras::after { content: ''; position: absolute; left: 0; }
.menu-botao__barras::before { top: -7px; }
.menu-botao__barras::after { top: 7px; }

.menu__lista, .submenu { list-style: none; margin: 0; padding: 0; }
.menu__lista { display: flex; flex-wrap: wrap; }
.menu__item { position: relative; display: flex; align-items: stretch; }
.menu__item > a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .9375rem; text-transform: uppercase;
  letter-spacing: .03em; padding: .95rem 1rem; display: block;
}
.menu__item:hover > a, .menu__item.atual > a, .menu__item > a:focus-visible { background: var(--azul-2); }
.submenu-botao {
  width: 24px; border: 0; background: transparent; cursor: pointer; margin-left: -12px; padding: 0;
}
.submenu-botao::after {
  content: ''; display: block; margin: auto; width: 7px; height: 7px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translateY(-2px);
}
.submenu {
  display: none; position: absolute; left: 0; top: 100%; z-index: 50; min-width: 260px;
  background: var(--papel); border: 1px solid var(--linha); border-top: 3px solid var(--dourado);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}
.menu__item:hover > .submenu, .menu__item:focus-within > .submenu, .menu__item.aberto > .submenu { display: block; }
.submenu .menu__item > a {
  color: var(--azul); text-transform: none; font-weight: 500; font-size: .9375rem; letter-spacing: 0;
  padding: .6rem 1rem; width: 100%;
}
.submenu .menu__item > a:hover { background: var(--fundo); }

/* --- home ----------------------------------------------------------------- */
.sessao { background: linear-gradient(135deg, var(--azul), #0d3560); color: #fff; padding-block: 2rem; }
.sessao__grade { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.sessao h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.sessao h1 a { color: #fff; text-decoration: none; }
.sessao h1 a:hover { text-decoration: underline; }
.sessao__texto--unico { grid-column: 1 / -1; max-width: 60ch; }
.selo { display: inline-block; background: var(--dourado); color: #000; font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .7rem; border-radius: 99px; margin: 0 0 .6rem; }
.sessao__video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--raio); overflow: hidden; }
.sessao__video img, .sessao__video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.player { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; background: #000; }
.player__play {
  position: absolute; inset: auto 1rem 1rem 1rem; display: inline-flex; gap: .5rem; align-items: center;
  background: rgba(7, 33, 59, .9); color: #fff; padding: .6rem 1rem; border-radius: var(--raio); font-weight: 600; width: fit-content;
}
.player:focus-visible { outline: 3px solid var(--foco); }
.player__aviso { position: absolute; right: .6rem; top: .4rem; margin: 0; font-size: .75rem; background: rgba(0, 0, 0, .6); padding: .1rem .5rem; border-radius: 4px; }

.botao {
  display: inline-block; background: var(--dourado); color: #000; font-weight: 700; text-decoration: none;
  padding: .7rem 1.4rem; border-radius: var(--raio); min-height: 44px;
}
.botao:hover { background: #e0b82e; color: #000; }
.botao--secundario { background: transparent; color: var(--azul); border: 2px solid var(--azul); }
.botao--secundario:hover { background: var(--azul); color: #fff; }

.areas { padding-block: 2rem 1rem; }
.areas__grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.area { background: var(--papel); border: 1px solid var(--linha); border-top: 4px solid var(--azul); border-radius: var(--raio); padding: 1.2rem 1.4rem; }
.area h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; }
.area__lista { list-style: none; margin: 0; padding: 0; }
.area__lista li { border-top: 1px solid var(--linha); }
.area__lista a { display: block; padding: .55rem 0; text-decoration: none; font-weight: 500; }
.area__lista a:hover { text-decoration: underline; }

.noticias { padding-block: 1.5rem 3rem; }
.secao-titulo { font-size: 1.5rem; border-bottom: 3px solid var(--dourado); display: inline-block; padding-bottom: .2rem; margin-bottom: 1.2rem; }
.noticias__grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.noticias__mais { text-align: center; margin-top: 1.5rem; }
.cartao { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; display: flex; flex-direction: column; }
.cartao__img img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.cartao__corpo { padding: 1rem 1.1rem 1.2rem; }
.cartao h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.cartao h3 a { color: var(--azul); text-decoration: none; }
.cartao h3 a:hover { text-decoration: underline; }
.cartao p { margin: 0 0 .4rem; color: var(--suave); font-size: .9375rem; }
.cartao__data { font-size: .8125rem !important; text-transform: uppercase; letter-spacing: .04em; }

/* --- páginas internas ------------------------------------------------------ */
.pagina { padding-block: 1.5rem 3rem; }
.pagina__titulo { margin-bottom: 1.2rem; }
.trilha { font-size: .875rem; color: var(--suave); margin-bottom: 1rem; }
.conteudo { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: clamp(1.2rem, 3vw, 2.4rem); }
.conteudo h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.linha-fina { font-size: 1.15rem; color: var(--suave); }
.destaque { margin: 1rem 0; }
.destaque img { border-radius: var(--raio); width: 100%; }
.texto { max-width: 75ch; }
.texto :is(table) { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.texto :is(th, td) { border: 1px solid var(--linha); padding: .5rem .7rem; text-align: left; }
.texto th { background: var(--fundo); }
.atualizado { font-size: .875rem; color: var(--suave); font-style: italic; margin-top: 1.5rem; }
.compartilhar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--linha); }
.compartilhar a, .compartilhar button {
  font: inherit; font-size: .875rem; text-decoration: none; color: var(--azul); background: var(--fundo);
  border: 1px solid var(--linha); border-radius: 99px; padding: .3rem .9rem; cursor: pointer;
}
.compartilhar a:hover, .compartilhar button:hover { background: var(--azul); color: #fff; }
.paginacao { margin-top: 2rem; text-align: center; }
.paginacao .page-numbers { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--linha); border-radius: 4px; text-decoration: none; background: var(--papel); }
.paginacao .current { background: var(--azul); color: #fff; }

/* --- rodapé ---------------------------------------------------------------- */
.rodape { background: var(--azul); color: #dce6f2; margin-top: 2rem; }
.rodape a { color: #fff; }
.rodape__grade { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem; }
.rodape__titulo { color: var(--dourado); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.rodape .marca, .rodape .marca__sobre { color: #fff; }
.rodape__texto { font-style: normal; margin: 0 0 .6rem; }
.rodape__lista { list-style: none; margin: 0; padding: 0; }
.rodape__lista a { display: block; padding: .2rem 0; }
.rodape__base { border-top: 1px solid rgba(255, 255, 255, .15); font-size: .875rem; }
.rodape__base-linha { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1rem; }
.rodape__base p { margin: 0; }

/* --- alto contraste (TR 5.1.16 / eMAG) ------------------------------------- */
.alto-contraste body, .alto-contraste { --azul: #000; --azul-2: #000; --fundo: #000; --papel: #000; --texto: #fff; --suave: #fff; --linha: #fff; --dourado: #ff0; }
.alto-contraste body { background: #000; color: #fff; }
.alto-contraste a { color: #ff0; }
.alto-contraste h1, .alto-contraste h2, .alto-contraste h3, .alto-contraste .marca, .alto-contraste .cartao h3 a { color: #fff; }
.alto-contraste .menu, .alto-contraste .sessao, .alto-contraste .rodape, .alto-contraste .barra-acess { background: #000; border: 1px solid #fff; }
.alto-contraste .menu__item > a, .alto-contraste .sessao h1 a, .alto-contraste .sessao h1 { color: #ff0; }
.alto-contraste .submenu { background: #000; border-color: #ff0; }
.alto-contraste .submenu .menu__item > a { color: #ff0; }
.alto-contraste .botao { background: #ff0; color: #000; }
.alto-contraste .botao--secundario { background: transparent; color: #ff0; border-color: #ff0; }
.alto-contraste .busca input { background: #000; color: #fff; border-color: #fff; }
.alto-contraste .busca button { background: #ff0; color: #000; }
.alto-contraste .faixa-demo { background: #000; color: #ff0; border-bottom: 1px solid #ff0; }
.alto-contraste .cabecalho, .alto-contraste .cartao, .alto-contraste .area, .alto-contraste .conteudo { border-color: #fff; }

/* --- responsivo ------------------------------------------------------------- */
@media (max-width: 900px) {
  .sessao__grade, .areas__grade, .rodape__grade { grid-template-columns: 1fr; }
  .menu-botao { display: block; }
  .menu__lista { display: none; flex-direction: column; }
  .menu__lista.aberto { display: flex; }
  .menu__item { flex-wrap: wrap; }
  .menu__item > a { flex: 1; border-top: 1px solid rgba(255, 255, 255, .12); }
  .submenu-botao { width: 48px; margin-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .submenu { position: static; width: 100%; box-shadow: none; border: 0; border-top: 0; background: var(--azul-2); }
  .submenu .menu__item > a { color: #fff; }
  .submenu .menu__item > a:hover { background: var(--azul); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
