/* Lab-standard footer: disclaimer panel, brand icon bar, rainbow border.
   Pattern copied from the sibling labs (ai-lab, uc-lab): CypherMonkey Labs footer kit. */
.site-footer.lab-footer {
  display: block; position: relative; z-index: 2; box-sizing: border-box; width: 100%; max-width: none;
  margin: 40px 0 0; padding: 34px clamp(14px, 4vw, 56px) 40px; text-align: center; color: #eef6ff;
  border: 4px solid transparent; border-left: 0; border-right: 0; border-radius: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    linear-gradient(115deg, #042f2e, #1e1b4b 46%, #4c0519) padding-box,
    linear-gradient(90deg, #22d3ee, #818cf8, #f472b6, #fbbf24, #34d399, #22d3ee) border-box;
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.55), 0 0 32px rgba(244, 114, 182, 0.4), 0 -12px 32px rgba(129, 140, 248, 0.35);
}
.site-footer.lab-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; pointer-events: none;
  background: linear-gradient(90deg, #22d3ee, #818cf8, #f472b6, #fbbf24, #34d399, #22d3ee); background-size: 200% 100%;
  box-shadow: 0 0 18px #22d3ee, 0 0 28px #f472b6, 0 0 18px #818cf8;
  animation: footer-shine 9s linear infinite;
}
@keyframes footer-shine { to { background-position: 200% 0; } }
.site-footer.lab-footer a:not(.brand-icon):not(.fb-item) { color: #fde68a; }
.disclaimer-panel {
  display: flex; gap: 16px; align-items: flex-start; text-align: left; max-width: 1040px; margin: 8px auto 26px; padding: 20px 22px;
  border-radius: 20px; border: 2px solid #0f766e;
  background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 35%, #dbeafe 100%); color: #0b1f2a; box-shadow: 0 8px 30px rgba(15, 118, 110, 0.35);
}
.disclaimer-panel h2 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.3; color: #052e2b; font-family: inherit; }
.disclaimer-panel p { margin: 0 0 8px; font-size: 1rem; line-height: 1.6; color: #0b1f2a; max-width: none; }
.disclaimer-panel p:last-child { margin-bottom: 0; }
.site-footer.lab-footer .disclaimer-panel a:not(.brand-icon):not(.fb-item) { color: #052447; background: #fff; padding: 0 4px; border-radius: 4px; font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
.disclaimer-ico { flex: none; width: 52px; height: 52px; color: #0f766e; }
.disclaimer-ico svg { width: 100%; height: 100%; display: block; }
.footer-zodiac-lockup { display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 12px; padding: 8px 18px; border-radius: 999px; background: rgba(16, 12, 40, 0.72); border: 2px solid #f4b942; box-shadow: 0 4px 18px rgba(244, 185, 66, 0.35); }
.footer-zodiac-emblem svg { display: block; }
.footer-brand-stack { text-align: left; line-height: 1.15; }
.footer-brand { margin: 0; font-size: 1.32rem; font-weight: 800; letter-spacing: 0.01em; color: #fff; }
.footer-domain { margin: 2px 0 0; font-size: 0.92rem; font-weight: 700; color: #fde68a; }
.footer-domain a { color: #fde68a; text-decoration: none; }
.footer-domain a:hover { text-decoration: underline; }
.brand-icons {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; width: fit-content; max-width: 100%; margin: 8px auto 20px; padding: 16px 22px;
  border-radius: 32px; border: 3px solid transparent;
  background: linear-gradient(#14081f, #14081f) padding-box, linear-gradient(120deg, #22d3ee, #a78bfa, #f472b6, #fde047, #22d3ee) border-box;
  box-shadow: 0 0 28px rgba(167, 139, 250, 0.65), 0 0 42px rgba(34, 211, 238, 0.35);
}
.brand-icon {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; color: #fff; text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.85); transition: transform 0.15s, box-shadow 0.15s;
}
.brand-icon:hover, .brand-icon:focus-visible { transform: translateY(-3px) scale(1.06); outline: 3px solid #fde047; outline-offset: 2px; }
.brand-icon svg { width: 48px; height: 48px; display: block; }
.brand-icon .monkey-icon { width: 62px; height: 62px; }
.brand-icons a.brand-web { background: radial-gradient(circle at 30% 25%, #ddd6fe, #7c3aed 55%, #312e81); box-shadow: 0 0 0 3px #e9d5ff, 0 0 22px #a78bfa; }
.brand-icons a.brand-gh { background: radial-gradient(circle at 30% 24%, #475569, #0f172a 70%); color: #fff; box-shadow: 0 0 0 3px #67e8f9, 0 0 22px #22d3ee; }
.brand-icons a.brand-lt { background: radial-gradient(circle at 32% 22%, #bbf7d0, #22c55e 46%, #14532d); color: #f7fee7; box-shadow: 0 0 0 3px #86efac, 0 0 22px #4ade80; }
.site-copy { margin: 14px 0 4px; font-size: 1rem; font-weight: 700; color: #fff; }

/* Site shortcut bar with icons, under the brand icons */
.footer-bar {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px auto 6px; padding: 10px; max-width: 980px;
  border-top: 2px solid rgba(255, 255, 255, 0.18); border-bottom: 2px solid rgba(255, 255, 255, 0.18);
}
.fb-item {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 999px;
  color: #f8fbff; text-decoration: none; font-weight: 700; font-size: 0.92rem; border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 12, 28, 0.55); font-family: inherit; cursor: pointer;
}
.fb-item:hover, .fb-item:focus-visible { background: rgba(253, 224, 71, 0.18); border-color: #fde047; outline: none; }
.fb-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #08121f; background: linear-gradient(135deg, var(--c1, #22d3ee), var(--c2, #a78bfa)); }
.fb-ico svg { width: 18px; height: 18px; }
.footer-license { margin: 10px auto 0; max-width: 780px; font-size: 0.85rem; opacity: 0.9; }

@media (max-width: 560px) {
  .disclaimer-panel { flex-direction: column; padding: 16px; }
  .brand-icon { width: 68px; height: 68px; }
  .brand-icon svg { width: 38px; height: 38px; }
  .brand-icon .monkey-icon { width: 52px; height: 52px; }
  .brand-icons { gap: 12px; padding: 12px; }
}
html[data-theme="contrast"] .site-footer.lab-footer { background: #000; border-color: #ffe600; }
html[data-theme="contrast"] .site-footer.lab-footer::before { background: #ffe600; box-shadow: none; animation: none; }
@media (prefers-reduced-motion: reduce) { .site-footer.lab-footer::before { animation: none; } .brand-icon { transition: none; } }
@media print { .brand-icons, .footer-bar { display: none; } .site-footer.lab-footer { background: #fff; color: #000; box-shadow: none; } .site-footer.lab-footer::before { display: none; } }
@media (max-width: 420px) {
  .brand-name { font-size: 1.02rem; } .brand-mark { width: 30px; height: 30px; }
  .topbar .tb-btn { padding: 6px 8px; min-width: 40px; }
}
