/* «Links úteis» (17/10/2026) e itens que saíram do menu lateral.
   Blocos grandes e animados (pedido do dono): o painel abre crescendo do botão,
   os blocos entram em cascata e o ícone reage ao passar o mouse/tocar. */
#sidebar .sb-oculto { display: none !important; }

#btn-links-uteis { cursor: pointer; font-family: inherit; }
#btn-links-uteis[aria-expanded="true"] { background: var(--navy); color: #fff; }
#btn-links-uteis svg:last-child { transition: transform .25s ease; }
#btn-links-uteis[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }

.lu-painel {
  position: fixed; z-index: 260; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid rgba(0, 31, 63, .10); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 31, 63, .25); padding: 8px 12px 14px;
  transform-origin: top right; animation: lu-abrir .22s cubic-bezier(.2, .9, .3, 1.2);
}
.lu-painel[hidden] { display: none; }
@keyframes lu-abrir { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }

.lu-grupo { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8a97a8; padding: 12px 4px 6px; }
.lu-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lu-largo, .lu-destaque { grid-column: 1 / -1; }

.lu-item {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 64px; box-sizing: border-box;
  padding: 11px 12px; border-radius: 14px; border: 1px solid rgba(0, 31, 63, .09); background: linear-gradient(180deg, #fff, #f8fafc);
  cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--navy); text-decoration: none; text-align: left;
  box-shadow: 0 1px 2px rgba(0, 31, 63, .05);
  opacity: 0; animation: lu-entrar .32s ease forwards; animation-delay: calc(var(--i, 0) * 35ms + 40ms);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
@keyframes lu-entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lu-item:hover, .lu-item:focus-visible {
  transform: translateY(-2px); border-color: rgba(230, 126, 34, .45); background: #fff;
  box-shadow: 0 10px 22px rgba(0, 31, 63, .12); outline: none;
}
.lu-item:active { transform: translateY(0) scale(.98); }
.lu-ic {
  display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  background: linear-gradient(135deg, #f39c12, #e67e22); color: #fff; box-shadow: 0 4px 10px rgba(230, 126, 34, .35);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.lu-ic svg { width: 20px; height: 20px; }
.lu-interno .lu-ic { background: linear-gradient(135deg, #12304f, #001f3f); box-shadow: 0 4px 10px rgba(0, 31, 63, .3); }
.lu-item:hover .lu-ic, .lu-item:focus-visible .lu-ic { transform: rotate(-8deg) scale(1.1); }
.lu-txt { flex: 1 1 auto; min-width: 0; }
.lu-txt small { display: block; font-size: 11.5px; font-weight: 400; color: #6b7a8c; margin-top: 2px; }
.lu-sai { width: 15px; height: 15px; flex: 0 0 15px; color: #a5b0bd; transition: transform .2s ease, color .2s ease; }
.lu-item:hover .lu-sai { transform: translate(2px, -2px); color: #e67e22; }

.lu-destaque {
  border: 1px solid rgba(228, 123, 2, .3); background: linear-gradient(180deg, rgba(243, 156, 18, .08), rgba(243, 156, 18, .03));
  border-radius: 16px; padding: 4px; opacity: 0; animation: lu-entrar .32s ease forwards; animation-delay: calc(var(--i, 0) * 35ms + 40ms);
}
.lu-destaque .lu-item { border-color: transparent; background: transparent; box-shadow: none; animation: none; opacity: 1; }
.lu-destaque .lu-item:hover { background: rgba(255, 255, 255, .7); }
.lu-copiar { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 10px 63px; }
.lu-copiar .btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.lu-copiar .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 31, 63, .1); }
.lu-copiar .btn svg { width: 13px; height: 13px; }

/* Celular: blocos em pé (ícone em cima, texto embaixo, seta no canto), para o texto não espremer. */
@media (max-width: 480px) {
  .lu-painel { padding: 6px 10px 12px; }
  .lu-grade > .lu-item:not(.lu-largo) { flex-direction: column; align-items: flex-start; gap: 9px; min-height: 104px; padding: 12px; }
  .lu-grade > .lu-item:not(.lu-largo) .lu-sai { position: absolute; top: 10px; right: 10px; }
  .lu-txt small { overflow-wrap: normal; }
  .lu-copiar { padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .lu-painel, .lu-item, .lu-destaque { animation: none; opacity: 1; }
  .lu-item, .lu-ic, .lu-sai, #btn-links-uteis svg:last-child { transition: none; }
}
