/* Approved Refined Ma King Insight footer. Isolated from cards, tips and app layout. */
.site-footer.mk-footer {
  display:block; box-sizing:border-box; overflow:hidden;
  width:min(1560px,calc(100% - 40px)); margin:0 auto 30px; padding:0;
  border-top:3px solid #f0bd50; border-radius:12px;
  background:#102f4c; color:#edf5f7; font-size:14px;
}
.mk-footer *, .mk-footer-dialog * { box-sizing:border-box; }
.mk-footer .mk-footer-main {
  display:grid; grid-template-columns:minmax(0,1.3fr) minmax(190px,1fr);
  align-items:start; gap:32px; padding:32px;
}
.mk-footer p { max-width:none; }
.mk-footer .mk-footer-tagline {
  margin:0; color:#f0bd50; font-size:21px; line-height:1.45; font-weight:650;
}
.mk-footer .mk-footer-position { margin:14px 0 0; color:#edf5f7; font-size:15px; line-height:1.65; }
.mk-footer .mk-footer-about { max-width:520px; margin:14px 0 0; color:#c6dae2; font-size:15px; line-height:1.75; }
.mk-footer .mk-footer-nav { display:grid; grid-template-columns:minmax(0,1fr); gap:0; min-width:0; }
.mk-footer #mk-footer-heading { margin:0 0 10px; color:#f0bd50; font-size:15px; line-height:1.5; font-weight:650; }
.mk-footer .mk-footer-link {
  position:relative; display:flex; align-items:center; min-height:44px; width:100%; padding:0 24px 0 0;
  border:0; border-radius:0; background:transparent; color:#edf5f7;
  font:inherit; font-size:16px; line-height:1.5; text-align:left; text-decoration:none; cursor:pointer;
}
.mk-footer .mk-footer-link::before {
  position:absolute; content:""; left:-12px; width:3px; height:18px;
  border-radius:2px; background:#f0bd50; opacity:0;
}
.mk-footer .mk-footer-link::after {
  position:absolute; content:""; right:4px; width:7px; height:7px;
  border-top:2px solid #f0bd50; border-right:2px solid #f0bd50;
  transform:rotate(45deg); opacity:0;
}
.mk-footer .mk-footer-link:hover, .mk-footer .mk-footer-link:focus-visible { color:#f0bd50; }
.mk-footer .mk-footer-link:hover::before, .mk-footer .mk-footer-link:focus-visible::before,
.mk-footer .mk-footer-link:hover::after, .mk-footer .mk-footer-link:focus-visible::after { opacity:1; }
.mk-footer .mk-footer-link:focus-visible { outline:2px solid #f0bd50; outline-offset:3px; }
.mk-footer .mk-footer-bottom {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px 28px;
  align-items:end; padding:22px 32px; border-top:1px solid rgb(237 245 247 / 13%);
}
.mk-footer .mk-footer-responsible { display:flex; align-items:center; gap:12px; min-width:0; }
.mk-footer .mk-footer-age {
  flex:0 0 auto; display:grid; place-items:center; width:44px; height:44px;
  border:1px solid rgb(240 189 80 / 55%); border-radius:50%; color:#f0bd50; font-size:14px; font-weight:650;
}
.mk-footer .mk-footer-responsible strong { display:block; color:#f0bd50; font-size:15px; line-height:1.5; font-weight:650; }
.mk-footer .mk-footer-risk { margin:5px 0 0; color:#c6dae2; font-size:13px; line-height:1.7; }
.mk-footer .mk-footer-copyright { margin:0; color:#c6dae2; font-size:13px; line-height:1.7; text-align:right; justify-self:end; }
.mk-footer-dialog {
  width:min(640px,calc(100% - 32px)); max-height:calc(100dvh - 32px); margin:auto;
  padding:26px; border:1px solid #c9d7de; border-top:3px solid #f0bd50; border-radius:12px;
  background:#fbf8f1; color:#102f4c; box-shadow:0 15px 45px rgb(16 47 76 / 20%);
}
.mk-footer-dialog::backdrop { background:rgb(16 47 76 / 50%); }
.mk-footer-dialog h2 { margin:0 0 16px; font-size:22px; line-height:1.5; }
.mk-footer-dialog p { margin:0 0 16px; font-size:15px; line-height:1.8; }
.mk-footer-dialog .mk-footer-close { min-height:44px; padding:9px 18px; border:0; border-radius:7px; background:#102f4c; color:#fbf8f1; font:inherit; cursor:pointer; }
.mk-footer-dialog .mk-footer-close:focus-visible { outline:2px solid #087e8b; outline-offset:3px; }
@media(max-width:760px) {
  .site-footer.mk-footer { width:calc(100% - 24px); margin-bottom:calc(105px + env(safe-area-inset-bottom)); padding:0; }
  .mk-footer .mk-footer-main { grid-template-columns:minmax(0,1fr); gap:22px; padding:22px 20px; }
  .mk-footer .mk-footer-bottom { grid-template-columns:minmax(0,1fr); gap:16px; padding:20px; }
  .mk-footer .mk-footer-responsible { align-items:start; }
  .mk-footer-dialog { padding:20px; }
}

/* Owner-supplied social profiles; existing footer composition is retained. */
.mk-footer .mk-footer-social{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:center;margin-top:14px;min-width:0}
.mk-footer .mk-footer-social a{display:inline-flex;align-items:center;min-height:44px;color:#f0bd50;font:inherit;font-size:14px;font-weight:650;text-decoration:none;white-space:nowrap}
.mk-footer .mk-footer-social a:hover{text-decoration:underline;text-underline-offset:4px}
.mk-footer .mk-footer-social a:focus-visible{outline:2px solid #f0bd50;outline-offset:4px;border-radius:3px}

/* Recognizable self-hosted brand marks beside the existing social labels. */
.mk-footer .mk-footer-social a{gap:8px}
.mk-footer .mk-footer-social-logo{display:block;flex:0 0 26px;width:26px;height:26px;object-fit:contain}

/* Full legal documents: retain the existing native dialog and footer design. */
.mk-footer-dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
.mk-footer-dialog > h2, .mk-footer-dialog > .mk-footer-close { flex:0 0 auto; }
.mk-footer-dialog > .mk-footer-close { align-self:flex-start; margin-top:16px; }
.mk-footer-dialog #footer-info-content {
  flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden;
  overscroll-behavior:contain; overflow-wrap:anywhere; padding-inline-end:8px;
}
.mk-footer-dialog #footer-info-content:focus-visible { outline:2px solid #087e8b; outline-offset:-2px; }
.mk-footer-dialog #footer-info-content p { white-space:pre-line; }
.mk-footer-dialog #footer-info-content h3 { margin:20px 0 10px; font-size:16px; line-height:1.6; }
.mk-footer-dialog #footer-info-content .mk-footer-document-meta {
  padding:12px; border-radius:7px; background:#eaf3f5; font-size:13px; line-height:1.7;
}
