/* Sidbredd: innehållet hålls inom 1 000 px, marginalen växer på bredare skärmar */
:root { --hs-sida: max(clamp(16px, 4vw, 40px), calc((100% - 1000px) / 2)); }
/* Gemensamt sidhuvud för alla sidor på www.risknet.xyz, även startsidan. I px (inte rem), eftersom dashboarden
   på startsidan skalar sin rotstorlek efter fönstret och sidhuvudet ska se exakt likadant ut överallt. */
.hs-topp { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; box-sizing: border-box;
  padding: 12px var(--hs-sida); background: #151f2b; border-bottom: 1px solid #23405a; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.hs-logo { display: block; line-height: 0; }
.hs-logo img { display: block; height: 36px; width: auto; }
.hs-meny { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.hs-meny a { color: #f2f6f9; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.4; padding: 5px 0; border-bottom: 2px solid transparent; }
.hs-meny a:hover, .hs-meny a[aria-current="page"] { border-bottom-color: #e2c97e; }
.hs-topp a:focus-visible { outline: 2px solid #e2c97e; outline-offset: 3px; border-radius: 3px; }
.testmarke { background: #b3261e; color: #fff; text-align: center; font: 700 13px/1.4 Inter, system-ui, sans-serif; padding: 5px 16px; letter-spacing: .04em; }

/* Menyn centrerad på sidan, logotypen till vänster */
.hs-topp { display: grid; grid-template-columns: 1fr auto 1fr; position: relative; overflow: hidden; min-height: 68px; }
.hs-logo { justify-self: start; position: relative; z-index: 2; }
.hs-meny { justify-self: center; position: relative; z-index: 1; }
.hs-lankar { display: contents; }
/* Mobil: en kompakt rad med logotyp och Kundportal, länkarna på raden under */
@media (max-width: 760px) {
  .hs-topp { grid-template-columns: 1fr; grid-template-areas: "logo" "lankar"; justify-items: center; gap: 6px; padding: 8px 14px 6px; min-height: 0; }
  .hs-logo { grid-area: logo; } .hs-logo img { height: 26px; }
  .hs-meny { display: contents; }
  .hs-lankar { grid-area: lankar; display: flex; justify-content: center; gap: 4px 18px; flex-wrap: wrap; }
  .hs-meny a { font-size: 14px; padding: 3px 0; }
  .testmarke { font-size: 11px; padding: 3px 10px; }
}

/* Blå korpar uppe till höger, spegelvända, med samma placering som på Om oss (Camilla 2026-11-27) */
html, body { overflow-x: clip; }
body { position: relative; }
.hs-bakkorpar { position: absolute; right: max(-60px, calc(50% - 760px)); top: calc(68px + clamp(1rem, 3vw, 2rem)); height: clamp(260px, 38vw, 540px); width: auto;
  opacity: .3; transform: scaleX(-1); pointer-events: none; z-index: 0; }
@media (max-width: 760px) { .hs-bakkorpar { opacity: .18; } }
.hs-main, .hs-fot, .hs-hero { position: relative; z-index: 1; }
.testmarke { position: relative; z-index: 2; }
