/* DME Poços de Caldas: folha de estilo do site.
   Sem fontes nem arquivos de terceiros (privacidade e desempenho). */

:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --texto: #1c2233;
  --marca: #1d2b64;        /* texto de títulos e menu */
  --marca-bg: #1d2b64;     /* fundos escuros (barra, rodapé, destaque) */
  --sobre-marca: #ffffff;
  --link: #1a4aa0;
  --acento: #a31d21;       /* vermelho do logo */
  --borda: #d3d9e6;
  --btn-bg: #1d3f8f;
  --btn-fg: #ffffff;
  --foco: #ff9d00;
  --raio: 10px;
  --sombra: 0 1px 2px rgba(20, 30, 70, .08), 0 4px 14px rgba(20, 30, 70, .06);
  --largura: 1180px;
}

html.alto-contraste {
  --bg: #000; --card: #000; --texto: #fff; --marca: #ffe600; --marca-bg: #000;
  --sobre-marca: #fff; --link: #ffe600; --acento: #ffe600; --borda: #fff;
  --btn-bg: #ffe600; --btn-fg: #000; --foco: #00e5ff; --sombra: none;
}

html { font-size: 100%; scroll-behavior: smooth; }
html[data-fonte="-1"] { font-size: 90%; }
html[data-fonte="1"]  { font-size: 112.5%; }
html[data-fonte="2"]  { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.container { width: min(100% - 2rem, var(--largura)); margin-inline: auto; }

.so-leitor {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.pular {
  position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; color: #000;
  padding: .75rem 1rem; font-weight: 700; border: 2px solid #000;
}
.pular:focus { left: 1rem; top: 1rem; }

.icone { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- faixa de homologação e barra superior ---------- */
.faixa-homologacao { background: #fff3c4; color: #4a3b00; text-align: center; font-size: .85rem; padding: .35rem 1rem; }
html.alto-contraste .faixa-homologacao { background: #000; color: #fff; border-bottom: 1px solid #fff; }

.barra-topo { background: var(--marca-bg); color: var(--sobre-marca); font-size: .85rem; }
html.alto-contraste .barra-topo { border-bottom: 1px solid #fff; }
.barra-topo-interno { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding-block: .4rem; }
.barra-topo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
.barra-topo a { color: var(--sobre-marca); text-decoration: none; padding: .25rem 0; display: inline-block; }
.barra-topo a:hover { text-decoration: underline; }
.acessibilidade { display: flex; gap: .35rem; }
.acessibilidade button {
  font: inherit; background: transparent; color: var(--sobre-marca); border: 1px solid rgba(255,255,255,.55);
  border-radius: 6px; padding: .2rem .55rem; cursor: pointer; min-height: 2rem;
}
.acessibilidade button:hover, .acessibilidade button[aria-pressed="true"] { background: #fff; color: #1d2b64; }
html.alto-contraste .acessibilidade button[aria-pressed="true"] { background: #ffe600; color: #000; }

/* ---------- cabeçalho ---------- */
.cabecalho { background: var(--card); border-bottom: 1px solid var(--borda); }
.cabecalho-interno { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1rem; }
.logo img { display: block; height: 4.5rem; width: auto; }
html.alto-contraste .logo img { background: #fff; padding: .25rem; border-radius: 6px; }
.cabecalho-info { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.telefones { display: flex; align-items: center; gap: .6rem; color: var(--marca); }
.telefones ul { list-style: none; margin: 0; padding: 0; line-height: 1.3; }
.telefones a { color: var(--marca); text-decoration: none; font-weight: 700; }
.telefones a:hover { text-decoration: underline; }
.selo-24h { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--acento); }
.bandeira {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border: 1px solid var(--borda);
  border-radius: 999px; color: var(--texto); text-decoration: none; font-size: .9rem; background: var(--card);
}
.bandeira:hover { border-color: var(--acento); }
.bandeira-ponto { width: .95rem; height: .95rem; border-radius: 50%; background: #1c8a3b; border: 2px solid rgba(0,0,0,.25); flex: none; }
.bandeira-amarela .bandeira-ponto { background: #f2b705; }
.bandeira-vermelha1 .bandeira-ponto { background: #d32f2f; }
.bandeira-vermelha2 .bandeira-ponto { background: #8b0000; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; text-decoration: none; padding: .7rem 1.2rem; border-radius: 8px; border: 2px solid transparent;
  min-height: 2.75rem;
}
.btn:hover { filter: brightness(1.12); }
html.alto-contraste .btn { border-color: #fff; }

/* ---------- menu principal ---------- */
.principal { background: var(--card); border-bottom: 1px solid var(--borda); box-shadow: var(--sombra); position: relative; z-index: 20; }
.principal .container { position: relative; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: static; }
.menu > li > a, .sub-toggle {
  display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-weight: 600; color: var(--marca);
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 1rem .95rem; cursor: pointer;
  text-decoration: none; min-height: 3.25rem;
}
.menu > li > a:hover, .sub-toggle:hover { background: rgba(29, 43, 100, .06); }
html.alto-contraste .menu > li > a:hover, html.alto-contraste .sub-toggle:hover { background: #222; }
.menu > li.ativo > a, .menu > li.ativo > .sub-toggle, .menu > li > a[aria-current="page"] { border-bottom-color: var(--acento); }
.sub-toggle .icone { width: 1em; height: 1em; transition: transform .15s; }
.tem-sub.aberto > .sub-toggle .icone { transform: rotate(180deg); }
.menu-toggle { display: none; align-items: center; gap: .5rem; font: inherit; font-weight: 700; color: var(--marca);
  background: none; border: 0; padding: .9rem 0; cursor: pointer; min-height: 3rem; }

.painel {
  display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card);
  border: 1px solid var(--borda); border-top: 3px solid var(--acento); box-shadow: 0 12px 28px rgba(20, 30, 70, .18);
  padding: 1.1rem 1.4rem 1.3rem; max-height: 75vh; overflow: auto;
}
.tem-sub.aberto > .painel { display: block; }
.no-js .tem-sub:hover > .painel, .no-js .tem-sub:focus-within > .painel { display: block; }
.painel-lista { list-style: none; margin: 0; padding: 0; columns: 4 13rem; column-gap: 1.75rem; }
.painel-lista li { break-inside: avoid; }
.painel-lista a, .lateral a { display: block; padding: .3rem 0; color: var(--link); text-decoration: none; }
.painel-lista a:hover, .lateral a:hover { text-decoration: underline; }
.grupo { margin: 0 0 .9rem; }
.grupo-titulo { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--marca); margin: .4rem 0 .15rem; }
.grupo ul { list-style: none; margin: 0; padding: 0; }
[aria-current="page"] { font-weight: 800; }

/* ---------- home ---------- */
.destaques { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.destaque { position: relative; overflow: hidden; border-radius: 14px; padding: 2rem; display: flex; flex-direction: column; align-items: flex-start; }
.destaque h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin: 0 0 .6rem; }
.destaque p { margin: 0 0 1.25rem; max-width: 36rem; }
.destaque-principal p { max-width: 26rem; }
.destaque > * { position: relative; z-index: 1; }
.destaque-principal { background: linear-gradient(120deg, var(--marca-bg) 55%, #2c4399); color: #fff; }
.destaque-principal::after {
  content: ""; position: absolute; right: -2rem; top: -10%; bottom: -10%; width: 38%;
  background: repeating-linear-gradient(135deg, transparent 0 20px, rgba(224, 70, 76, .6) 20px 32px);
  transform: skewX(-8deg); opacity: .85;
}
.destaque-principal .btn { background: #fff; color: #1d2b64; }
html.alto-contraste .destaque-principal { background: #000; border: 2px solid #fff; }
html.alto-contraste .destaque-principal::after { display: none; }
html.alto-contraste .destaque-principal .btn { background: #ffe600; color: #000; }
.destaque-secundario { background: var(--card); border: 1px solid var(--borda); border-left: 6px solid var(--acento); box-shadow: var(--sombra); }
.destaque-secundario h2 { color: var(--marca); }

.secao { margin-top: 2.5rem; }
.titulo-secao { font-size: 1.4rem; color: var(--marca); margin: 0 0 1.1rem; padding-bottom: .3rem; border-bottom: 3px solid var(--acento); display: inline-block; }

.servicos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .9rem; }
.servicos a {
  display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; height: 100%;
  background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.3rem .8rem;
  color: var(--texto); text-decoration: none; box-shadow: var(--sombra); transition: transform .12s, border-color .12s;
}
.servicos a:hover { border-color: var(--acento); transform: translateY(-2px); }
.servico-icone { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 50%; background: var(--marca-bg); color: #fff; }
.servico-icone .icone { width: 1.6rem; height: 1.6rem; }
html.alto-contraste .servico-icone { border: 2px solid #fff; }
.servico-nome { font-weight: 700; line-height: 1.25; }

.atalhos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: .9rem; }
.atalhos a {
  display: flex; gap: .9rem; align-items: flex-start; height: 100%; padding: 1.1rem; background: var(--card); color: var(--texto);
  border: 1px solid var(--borda); border-left: 5px solid var(--acento); border-radius: var(--raio); text-decoration: none; box-shadow: var(--sombra);
}
.atalhos a:hover { border-color: var(--acento); }
.atalho-icone .icone { width: 1.8rem; height: 1.8rem; color: var(--marca); }
.atalho-texto { display: flex; flex-direction: column; gap: .15rem; }
.atalho-texto strong { color: var(--marca); font-size: 1.05rem; }
.atalho-destaque a { background: var(--marca-bg); color: #fff; border-left-color: #e0464c; }
.atalho-destaque .atalho-texto strong, .atalho-destaque .atalho-icone .icone { color: #fff; }
html.alto-contraste .atalho-destaque a { border: 2px solid #ffe600; }

.duas-colunas { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; }
.lista-noticias { list-style: none; margin: 0 0 1rem; padding: 0; }
.lista-noticias li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .6rem; padding: .85rem 0; border-bottom: 1px solid var(--borda); }
.lista-noticias a { font-weight: 600; }
.lista-noticias time { color: var(--texto); opacity: .75; font-size: .85rem; margin-left: auto; }
.lista-noticias.encerradas a { font-weight: 400; }
.etiqueta { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .5rem; border-radius: 4px; background: #e4e9f5; color: #1d2b64; }
.etiqueta-operacao { background: #fbe3e4; color: #7a1216; }
.etiqueta-aneel { background: #dff1e4; color: #14532d; }
.etiqueta-encerrado { background: #e6e7ea; color: #3a3d46; }
html.alto-contraste .etiqueta { background: #000; color: #fff; border: 1px solid #fff; }
.link-mais { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.premio { background: var(--card); border: 1px solid var(--borda); border-left: 6px solid var(--acento); border-radius: var(--raio); padding: 1.2rem 1.3rem; box-shadow: var(--sombra); }
.premio h3 { margin: 0 0 .4rem; color: var(--marca); font-size: 1.1rem; }
.premio p { margin: 0; }

/* ---------- páginas internas ---------- */
.faixa-titulo { position: relative; overflow: hidden; background: var(--marca-bg); color: #fff; padding: 1.1rem 0 1.6rem; }
.faixa-titulo::after { content: ""; position: absolute; right: -3rem; top: 0; bottom: 0; width: 22%;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(224, 70, 76, .45) 14px 22px); transform: skewX(-8deg); }
html.alto-contraste .faixa-titulo { border-bottom: 2px solid #fff; }
html.alto-contraste .faixa-titulo::after { display: none; }
.faixa-titulo .container { position: relative; z-index: 1; }
.faixa-titulo h1 { margin: .35rem 0 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.migalhas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .85rem; }
.migalhas li + li::before { content: "›"; margin-right: .5rem; opacity: .8; }
.migalhas a { color: #fff; }

.layout-pagina { padding-block: 2rem 3.5rem; }
.com-lateral { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.lateral { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem 1.1rem; box-shadow: var(--sombra); }
.lateral h2 { font-size: 1rem; margin: 0 0 .5rem; color: var(--marca); }
.lateral ul { list-style: none; margin: 0; padding: 0; }
.lateral li > ul { padding-left: .8rem; border-left: 2px solid var(--borda); }
.lateral a[aria-current="page"] { border-left: 4px solid var(--acento); padding-left: .5rem; margin-left: -.55rem; }

.conteudo-texto { max-width: 52rem; font-size: 1.05rem; }
.conteudo-texto h2 { color: var(--marca); font-size: 1.45rem; margin: 2rem 0 .6rem; line-height: 1.25; }
.conteudo-texto h2:first-child { margin-top: 0; }
.conteudo-texto h3 { color: var(--marca); font-size: 1.15rem; margin: 1.5rem 0 .4rem; }
.conteudo-texto p, .conteudo-texto li { overflow-wrap: anywhere; }
.conteudo-texto li { margin: .25rem 0; }
.conteudo-texto img { border-radius: 6px; }
.conteudo-texto table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.conteudo-texto th, .conteudo-texto td { border: 1px solid var(--borda); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.conteudo-texto th { background: rgba(29, 43, 100, .08); }
html.alto-contraste .conteudo-texto th { background: #222; }
a[href$=".pdf"]::after   { content: " (PDF)"; font-size: .8em; color: var(--texto); opacity: .8; }
a[href$=".xlsx"]::after, a[href$=".xls"]::after { content: " (planilha)"; font-size: .8em; color: var(--texto); opacity: .8; }
a[href$=".docx"]::after, a[href$=".doc"]::after { content: " (Word)"; font-size: .8em; color: var(--texto); opacity: .8; }
a.arq::after, .painel a::after, .lateral a::after, .btn::after, .atalhos a::after, .servicos a::after { content: none !important; }

.nota-revisao { background: #fff7d6; border-left: 5px solid #e0a800; color: #4a3b00; padding: .75rem 1rem; margin: 0 0 1.5rem; font-size: .9rem; border-radius: 4px; }
html.alto-contraste .nota-revisao { background: #000; color: #fff; border: 1px solid #fff; border-left-width: 5px; }
.pendente { border: 2px dashed var(--borda); border-radius: var(--raio); padding: 1.2rem 1.4rem; }
.meta-noticia { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .9rem; }

.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.5rem; max-width: 56rem; }
.cartao { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.1rem 1.2rem; box-shadow: var(--sombra); }
.cartao h2 { font-size: 1.1rem !important; margin: 0 0 .5rem !important; }
.cartao ul { list-style: none; margin: 0; padding: 0; }
.cartao address { font-style: normal; }
.mapa ul { padding-left: 1.2rem; }
.mapa > ul:first-child { padding-left: 1.2rem; }

/* ---------- rodapé ---------- */
.rodape { background: var(--marca-bg); color: #fff; margin-top: 2rem; }
html.alto-contraste .rodape { border-top: 2px solid #fff; }
.rodape a { color: #fff; }
.rodape-grade { display: grid; grid-template-columns: 1.7fr 1.2fr 1.3fr 1fr; gap: 2rem; padding-block: 2.5rem 1rem; }
.rodape h2 { font-size: 1.1rem; margin: 0 0 .7rem; }
.rodape p { margin: 0 0 .75rem; font-size: .92rem; }
.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape li { margin: .3rem 0; font-size: .92rem; }
.rodape address { font-style: normal; font-size: .92rem; margin-bottom: .75rem; }
.rodape-base { border-top: 1px solid rgba(255, 255, 255, .25); }
.rodape-base-interno { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem; font-size: .88rem; }
.rodape-base p { margin: 0; }
.voltar-topo { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- telas menores ---------- */
@media (max-width: 62rem) {
  .destaques, .duas-colunas, .com-lateral { grid-template-columns: minmax(0, 1fr); }
  .rodape-grade { grid-template-columns: 1fr 1fr; }
  .com-lateral .lateral { order: 2; }
  .menu-toggle { display: flex; }
  .js .principal .menu { display: none; }
  .js .principal.nav-aberto .menu { display: block; }
  .menu { flex-direction: column; border-top: 1px solid var(--borda); }
  .menu > li > a, .sub-toggle { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--borda); padding: .9rem .25rem; }
  .painel { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--acento); padding: .25rem 0 .75rem 1rem; max-height: none; }
  .painel-lista { columns: 1; }
  .no-js .painel { display: block; }
}
@media (max-width: 40rem) {
  .rodape-grade { grid-template-columns: 1fr; }
  .destaque { padding: 1.4rem; }
  .logo img { height: 3.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .barra-topo, .principal, .acessibilidade, .voltar-topo, .faixa-homologacao { display: none; }
  body { background: #fff; }
}

/* ---------- licitações, fichas e filtros ---------- */
del { opacity: .75; }
.conteudo-largo { max-width: 62rem; }
.titulo-longo { font-size: clamp(1.25rem, 2.4vw, 1.75rem) !important; }
.btn-claro { background: var(--card); color: var(--marca); border-color: var(--borda); }
html.alto-contraste .btn-claro { background: #000; color: #ffe600; border-color: #ffe600; }
.filtros { display: none; }
.js .filtros {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .9rem 1rem; align-items: end;
  background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.1rem 1.2rem; margin: 1.25rem 0 .5rem;
}
.filtros .campo-objeto { grid-column: 1 / -1; }
.filtros label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .25rem; color: var(--marca); }
.filtros input, .filtros select {
  width: 100%; font: inherit; padding: .55rem .65rem; border: 1px solid #7b86a3; border-radius: 6px; background: var(--card); color: var(--texto); min-height: 2.75rem;
}
.filtros button { width: 100%; cursor: pointer; font: inherit; }
.resumo-filtro { font-size: .9rem; margin: .5rem 0 1rem; }
.grupo-lic h2 { margin-top: 1.5rem; }
.lista-lic { list-style: none; margin: 0; padding: 0; }
.lista-lic li { padding: .9rem 0; border-bottom: 1px solid var(--borda); margin: 0; }
.lista-lic .lic-titulo { font-weight: 700; display: block; }
.lic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: .35rem 0 0; font-size: .88rem; }
.ficha { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0 0 1.5rem; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); }
.ficha div { min-width: 9rem; }
.ficha dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--marca); }
.ficha dd { margin: 0; }
.ficha-coluna { flex-direction: column; border: 0; padding: 0; background: none; gap: .6rem; margin: 0 0 .75rem; }
.nota-pequena { font-size: .85rem; margin: .5rem 0 0; }
a[href^="tel:"] { white-space: nowrap; }

/* tipo e tamanho dos documentos para baixar */
.arq-info{color:var(--texto);opacity:.8;font-size:.875em;white-space:nowrap}
