@charset "utf-8";
/* Toppen på fasesiden med fasen i fokus (TSK-21931, forslag C fra 20.11; a, b og ?fasetopp= er fjernet etter
   lansering). Markup i template-parts/fasetopp.php, lastes av taxonomy-fase.php etter fasestige.css.

   Fasens farger står på flata og hver lenke: --a (aksent), --l (lys flate), --t (tekst, minst 4,8:1) og --s
   (silhuetten: aksenten der den har minst 3:1 mot hvitt, ellers tekstfargen). Silhuettene er dekor; navn og alder
   står alltid som tekst i marine. */

.fs .ftopp { --fase-0-5-silhuett: var(--fase-0-5); --fase-6-9-silhuett: var(--fase-6-9-tekst);
  --fase-10-12-silhuett: var(--fase-10-12-tekst); --fase-13-18-silhuett: var(--fase-13-18); --fase-19-silhuett: var(--fase-19);
  --ftopp-pad: clamp(1.5rem, .9rem + 3vw, 3.5rem); }
.fs .ftopp__tekst { position: relative; z-index: 2; }
.fs .ftopp__scene { position: relative; width: 100%; margin-top: 1.25rem; }
.fs .ftopp__svg { display: block; width: 100%; height: auto; overflow: visible; }
.fs .ftopp svg svg path, .fs .ftopp__stor path { fill: currentColor; }
.fs .ftopp__stor { color: var(--s); }
.fs .ftopp__nabo { color: var(--marine); opacity: .28; transition: opacity .2s ease, color .2s ease; }

.fs .ftopp__linje { fill: none; stroke: var(--marine); stroke-opacity: .5; stroke-width: 2; stroke-dasharray: 1 6;
  stroke-linecap: round; }

.fs .ftopp__navn { display: block; font: 700 .875rem/1.15 var(--font-tekst); }
.fs .ftopp__spenn { display: block; margin-top: .1rem; font: 600 .8125rem/1.2 var(--font-tekst); white-space: nowrap; }
.fs .ftopp a:focus-visible { outline: 3px solid var(--marine); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gul); }

/* ---------- Utsnitt av stigen, forrige og neste som lenker ---------- */
.fs .ftopp--c .ftopp__svg { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.fs .ftopp--c .ftopp__svg { max-width: 18rem; margin-inline: auto; }
.fs .ftopp__punkt { fill: var(--marine); fill-opacity: .45; }
.fs .ftopp__punkt.er-valgt { fill: var(--t); fill-opacity: 1; }
.fs .ftopp__ar { fill: var(--marine); font-family: var(--font-tekst); font-weight: 700; text-anchor: middle;
  font-variant-numeric: tabular-nums; }
.fs .ftopp__piler { display: flex; justify-content: space-between; gap: .5rem; margin-top: .25rem; }
.fs .ftopp__pil { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35rem; min-height: 44px; padding: .55rem .8rem;
  border-radius: 999px; color: var(--marine); text-decoration: none; }
.fs .ftopp__pil .ftopp__navn, .fs .ftopp__pil .ftopp__spenn { display: inline; margin: 0; white-space: nowrap; }
.fs .ftopp__pil .ftopp__spenn { font-weight: 500; }
.fs .ftopp__pil--neste { justify-content: flex-end; margin-left: auto; text-align: right; }
.fs .ftopp__pil--tom { visibility: hidden; }
.fs .ftopp__pilmerke { font-weight: 800; }
.fs .ftopp__pil:hover { background: rgba(255, 255, 255, .6); }
.fs .ftopp__pil:hover .ftopp__navn { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Brede skjermer: teksten til venstre, scenen til høyre ---------- */
@media (min-width: 960px) {
  .fs .ftopp .ftopp__flate { grid-template-columns: minmax(0, 1fr) 30rem; align-items: end; }
  .fs .ftopp__scene { margin-top: 0; }
  .fs .ftopp--c .ftopp__svg { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fs .ftopp__nabo { transition: none; }
}
