/* MigraKompassen landing-page compass identity for all legacy page headers.
   Intentionally scoped: it does not change menus, content, forms, or home page styles. */
header a.mk-unified-brand {
  display:inline-flex;align-items:center;gap:12px;
  flex-shrink:0;min-width:0;max-width:100%;
  text-decoration:none;color:#153b57;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  font-style:normal;line-height:1;white-space:normal;
}
.mk-unified-brand .mk-brandmark{display:inline-block;flex:0 0 53px;width:53px;height:53px;line-height:0}
.mk-unified-brand .mk-brandmark svg{display:block;width:100%;height:100%;overflow:visible}
.mk-unified-brand .mk-brandname{display:block;font-size:29px;font-weight:850;letter-spacing:-1.4px;line-height:1.03;color:#153b57}
.mk-unified-brand .mk-brandname small{display:block;margin-top:7px;font-size:11px;font-weight:570;letter-spacing:0;line-height:1.35;color:#597987;white-space:normal}
.mk-unified-brand .logo-bg{fill:#bf5a62}
.mk-unified-brand .compass-ring{fill:none;stroke:#d8f2f5;stroke-width:2;transform-origin:32px 32px;animation:mk-brand-breathe 4s ease-in-out infinite}
.mk-unified-brand .compass-needle{transform-origin:32px 32px;animation:mk-brand-reveal 1.65s cubic-bezier(.18,.74,.18,1) both}
.mk-unified-brand .needle-main{fill:#fff}
.mk-unified-brand .needle-accent{fill:#f3bc69}
.mk-unified-brand .needle-center{fill:#153b57}
.mk-unified-brand .watch-second-hand{transform-origin:32px 32px}
.mk-unified-brand .watch-second-hand path{fill:none;stroke:#f3bc69;stroke-width:1.5;stroke-linecap:round}
.mk-unified-brand .watch-second-hand circle{fill:#f3bc69;stroke:none}
.mk-unified-brand .compass-watch-ticks path{fill:none;stroke:#e9f8fa;stroke-width:1.25;stroke-linecap:round;opacity:.86}
.mk-unified-brand:hover .compass-needle{animation:mk-brand-sweep 14s linear infinite}
.mk-unified-brand:hover .watch-second-hand{animation:mk-brand-second 3.5s linear infinite}
header .mk-unified-brand:focus-visible{outline:3px solid #bf5a62;outline-offset:4px;border-radius:7px}
@keyframes mk-brand-breathe{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.75;transform:scale(.97)}}
@keyframes mk-brand-reveal{from{opacity:0;transform:rotate(-120deg) scale(.45)}to{opacity:1;transform:rotate(0) scale(1)}}
@keyframes mk-brand-sweep{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@keyframes mk-brand-second{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@media(max-width:1050px){
 header a.mk-unified-brand{gap:8px}
 .mk-unified-brand .mk-brandmark{width:44px;height:44px;flex-basis:44px}
 .mk-unified-brand .mk-brandname{font-size:clamp(18px,2.6vw,25px);letter-spacing:-.8px}
 .mk-unified-brand .mk-brandname small{font-size:10px;margin-top:5px}
}
@media(max-width:560px){
 header a.mk-unified-brand{gap:7px}
 .mk-unified-brand .mk-brandmark{width:38px;height:38px;flex-basis:38px}
 .mk-unified-brand .mk-brandname{font-size:clamp(16px,4.6vw,22px);letter-spacing:-.55px}
 .mk-unified-brand .mk-brandname small{font-size:9px;line-height:1.3}
}
@media(prefers-reduced-motion:reduce){
 .mk-unified-brand .compass-needle,
 .mk-unified-brand .compass-ring,
 .mk-unified-brand .watch-second-hand,
 .mk-unified-brand:hover .compass-needle,
 .mk-unified-brand:hover .watch-second-hand{animation:none!important;transform:none!important}
}

/* Legacy Digital Sweden uses .brand span for an old decorative text icon.
   Reset those decorations only inside the new compass identity. */
header a.mk-unified-brand > .mk-brandmark,
header a.mk-unified-brand > .mk-brandname {
  padding:0;
  margin:0;
  background:transparent;
  border:0;
  border-radius:0;
}
header a.mk-unified-brand > .mk-brandmark{margin-right:0}
