/*!
 * Rodapé padrão STI · Serviço de Tecnologia da Informação · UFV Campus Rio Paranaíba
 * Componente: <footer class="sti-rodape"> (ver LEIA-ME.md). Não depende de Bootstrap.
 * Usa as variáveis --ufv-* do sistema quando existem; senão, valores próprios.
 * Personalização por sistema (valem nos dois temas): --sti-rodape-destaque,
 * --sti-rodape-texto e --sti-rodape-fundo. Ex.: :root{--sti-rodape-destaque:var(--dvp-verde-escuro)}
 * Tema escuro: :root[data-ufv-tema="escuro"] ou [data-tema="escuro"] ou [data-ocomon-tema="escuro"], .sti-rodape--escuro, ou o tema do
 * sistema operacional quando a página não define o tema. Sistema sem tema escuro: classe sti-rodape--claro.
 */
.sti-rodape{
  --sti-r-s:#333333; --sti-r-t:#901812; --sti-r-i:#D1A705;
  --sti-r-texto:var(--sti-rodape-texto,var(--ufv-texto-fraco,#5f6670));
  --sti-r-forte:var(--sti-rodape-destaque,var(--ufv-texto,#212529));
  --sti-r-link:var(--ufv-vinho,#682a2c);
  --sti-r-bg:var(--sti-rodape-fundo,var(--ufv-vidro-bg-forte,rgba(255,255,255,.9)));
  --sti-r-borda:var(--ufv-vidro-borda,rgba(255,255,255,.75));
  --sti-r-linha:rgba(15,23,42,.12);
  --sti-r-filtro:var(--ufv-vidro-filtro,blur(22px) saturate(160%));
  --sti-r-sombra:var(--ufv-vidro-sombra,0 10px 40px rgba(15,23,42,.10),0 2px 8px rgba(15,23,42,.06));
  box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:4px 18px;margin:16px 12px 8px;padding:7px clamp(12px,3vw,24px);
  font:500 12.5px/1.35 var(--ufv-fonte,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif);
  color:var(--sti-r-texto);text-align:left;
  background:var(--sti-r-bg);border:1px solid var(--sti-r-borda);border-radius:16px;
  -webkit-backdrop-filter:var(--sti-r-filtro);backdrop-filter:var(--sti-r-filtro);
  box-shadow:var(--sti-r-sombra);
}
.sti-rodape *,.sti-rodape *::before,.sti-rodape *::after{box-sizing:inherit}
.sti-rodape--flutuante{position:fixed;left:12px;right:12px;bottom:8px;margin:0;z-index:1030}
.sti-rodape-org,.sti-rodape-sis{display:inline-flex;align-items:center;flex-wrap:wrap;gap:0 10px;min-width:0}
.sti-rodape-marca{display:inline-flex;align-items:center;padding:2px 0;border-radius:4px;line-height:0;text-decoration:none}
.sti-rodape-sigla{display:block;height:17px;width:auto}
.sti-rodape-s{fill:var(--sti-r-s)} .sti-rodape-t{fill:var(--sti-r-t)} .sti-rodape-i{fill:var(--sti-r-i)}
.sti-rodape-nome{padding-left:10px;border-left:1px solid var(--sti-r-linha)}
.sti-rodape-nome b,.sti-rodape-sis b{color:var(--sti-r-forte);font-weight:700}
.sti-rodape-pt{opacity:.55}
.sti-rodape-sis a:not(.sti-rodape-ajuda){color:var(--sti-r-link);font-weight:600}
.sti-rodape-ajuda{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:999px;
  color:var(--sti-r-link);font-weight:600;text-decoration:none;border:1px solid currentColor;
  border-color:color-mix(in srgb,currentColor 35%,transparent)}
.sti-rodape-ajuda:hover{background:color-mix(in srgb,currentColor 10%,transparent)}
.sti-rodape-ico{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sti-rodape a:focus-visible{outline:2px solid var(--sti-r-link);outline-offset:2px}

/* tema escuro */
:root[data-ufv-tema="escuro"] .sti-rodape,:root[data-tema="escuro"] .sti-rodape,:root[data-ocomon-tema="escuro"] .sti-rodape,.sti-rodape.sti-rodape--escuro{
  --sti-r-s:#FFFFFF; --sti-r-t:#E3726B; --sti-r-i:#E5BC1A;
  --sti-r-texto:var(--sti-rodape-texto,var(--ufv-texto-fraco,#a0a8b0)); --sti-r-forte:var(--sti-rodape-destaque,var(--ufv-texto,#e6e7e9));
  --sti-r-link:#f0a7a2; --sti-r-bg:var(--sti-rodape-fundo,var(--ufv-vidro-bg-forte,rgba(27,28,32,.9)));
  --sti-r-borda:var(--ufv-vidro-borda,rgba(255,255,255,.08)); --sti-r-linha:rgba(255,255,255,.14)}
@media (prefers-color-scheme:dark){
  :root:not([data-ufv-tema]):not([data-tema]):not([data-ocomon-tema]) .sti-rodape:not(.sti-rodape--claro){
    --sti-r-s:#FFFFFF; --sti-r-t:#E3726B; --sti-r-i:#E5BC1A;
    --sti-r-texto:var(--sti-rodape-texto,#a0a8b0); --sti-r-forte:var(--sti-rodape-destaque,#e6e7e9); --sti-r-link:#f0a7a2;
    --sti-r-bg:var(--sti-rodape-fundo,rgba(27,28,32,.9)); --sti-r-borda:rgba(255,255,255,.08); --sti-r-linha:rgba(255,255,255,.14)}
}

/* celular: sigla + sistema + suporte */
@media (max-width:640px){
  .sti-rodape{justify-content:center;gap:4px 12px;padding:5px 10px;border-radius:12px;font-size:11.5px;text-align:center}
  .sti-rodape--flutuante{left:6px;right:6px;bottom:4px}
  .sti-rodape-nome,.sti-rodape-versao,.sti-rodape-ano,.sti-rodape-setor-extra{display:none}
  .sti-rodape{flex-wrap:nowrap}.sti-rodape-org{flex:none}
  .sti-rodape-sis{flex-wrap:nowrap;min-width:0}
  .sti-rodape-sis>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .sti-rodape-ajuda span{display:none}
  .sti-rodape-ajuda{padding:3px 6px}
}
@media print{.sti-rodape{display:none!important}}
