/* Shared footer (layouts/partials/site-footer.html) — classic site, redesign and /app/.
   Self-contained (no Tailwind), so it looks identical everywhere. */
.mea-footer {
  --f-bg: #0b1220;
  --f-text: #cbd5e1;
  --f-muted: #94a3b8;
  --f-line: #1e293b;
  --f-accent: #4ade80;
  background: var(--f-bg);
  color: var(--f-text);
  font-family: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  border-top: 4px solid #15803d;
}
.mea-footer a { color: inherit; text-decoration: none; }
.mea-footer a:hover, .mea-footer a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mea-footer-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

.mea-footer-pill {
  flex: 0 0 auto; padding: 10px 18px; border-radius: 999px; background: #0b1220; color: #fff !important;
  font-weight: 700; white-space: nowrap;
}
.mea-footer-pill:hover { text-decoration: none !important; background: #000; }

.mea-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px;
  padding-top: 52px; padding-bottom: 36px;
}
.mea-footer h2 {
  margin: 0 0 14px; color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.mea-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mea-footer-brand img { height: 56px; width: auto; display: block; margin-bottom: 14px; }
.mea-footer-brand p { margin: 0 0 10px; color: var(--f-muted); max-width: 34ch; }
.mea-footer-cac {
  display: inline-block; padding: 6px 10px; border: 1px solid var(--f-line); border-radius: 8px;
  font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 13px; color: var(--f-text) !important;
}
.mea-footer-states { font-size: 13px; }
.mea-footer-cta {
  display: inline-flex; margin-top: 18px; padding: 11px 18px; border-radius: 999px;
  background: #15803d; color: #fff !important; font-weight: 700;
}
.mea-footer-cta:hover { background: #166534; text-decoration: none !important; }

.mea-footer-licences { padding-top: 28px; padding-bottom: 32px; border-top: 1px solid var(--f-line); }
.mea-licence-grid { grid-template-columns: repeat(4, 1fr); gap: 14px !important; }
.mea-licence {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--f-line); border-radius: 14px; background: #0f172a;
}
.mea-licence-logo {
  flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 12px; background: #fff; overflow: hidden;
}
.mea-licence-logo.is-wide { width: 96px; }
.mea-licence-logo img { max-width: 88%; max-height: 82%; width: auto; height: auto; object-fit: contain; display: block; }
.mea-licence strong { display: block; color: #fff; font-size: 14px; }
.mea-licence small { display: block; color: var(--f-muted); font-size: 12.5px; line-height: 1.4; }
.mea-footer-more { display: inline-block; margin-top: 14px; color: var(--f-accent) !important; font-weight: 600; }

.mea-footer-bottom {
  position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--f-line);
  font-size: 13px; color: var(--f-muted);
}
.mea-footer-bottom p { margin: 0; }
.mea-footer-hook { position: absolute; right: 0; bottom: 0; width: 50px; height: 100%; opacity: 0; border: 0; background: none; cursor: pointer; }

@media (max-width: 1000px) {
  .mea-footer-grid { grid-template-columns: 1fr 1fr; }
  .mea-licence-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .mea-footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .mea-licence-grid { grid-template-columns: 1fr; }
  .mea-footer ul li a { display: inline-block; padding: 4px 0; } /* bigger tap targets */
  /* leave room for the mobile dock on the redesign */
  body.mea-redesign .mea-footer-bottom { padding-bottom: 96px; }
}
