/* Bas: element, hjälpklasser och tillgänglighet.
   Alla värden är tokens ur theme.json (krav TE-112). */

body {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--wp--preset--color--gul);
  outline-offset: 2px;
}

p {
  max-width: 66ch;
}

/* Radlängd hör till innehållet, inte till panelen det står i: en bred panel
   får inte tvinga fram en smal kolumn med tomrum bredvid. */
.ffk-bred p {
  max-width: none;
}

.ffk-ingress {
  font-size: var(--wp--preset--font-size--ingress);
  color: var(--wp--preset--color--damp);
  max-width: 56ch;
}

.ffk-dampad {
  color: var(--wp--preset--color--damp);
}

/* Hoppa till innehållet — syns först vid tangentbordsfokus (krav NF-106). */
.ffk-hoppa {
  position: absolute;
  left: var(--wp--preset--spacing--40);
  top: -80px;
  z-index: 100;
  background: var(--wp--preset--color--gul);
  color: var(--wp--preset--color--brodtext);
  padding: 12px 20px;
  border-radius: 0 0 var(--wp--custom--radie) var(--wp--custom--radie);
  font-weight: 700;
  text-decoration: none;
}

.ffk-hoppa:focus {
  top: 0;
}

.ffk-endast-skarmlasare {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
