/* Skift: the first day is a seam down the page. What the old system keeps stands on the left, what Bemandly takes on the
   right, and each subject sits on the seam itself. Nothing moves; the page is read, not played. */
.sf{--fuge:clamp(28px,4vw,72px);--soem:2px}

/* In the subpage frame (BEM-3281) the seam is a white panel pulled up into the deep top. No overflow:hidden on it,
   or the bar with the day would stop sticking */
.sf.u-loeft{padding-bottom:clamp(48px,5vw,80px)}
.sf-linje{max-width:1180px;margin:0 auto;padding:clamp(10px,1.4vw,22px) clamp(18px,3vw,48px) clamp(18px,3vw,48px);border-radius:var(--nf-r);background:#fff;box-shadow:0 0 0 1px rgba(13,23,54,.06),0 30px 80px -30px rgba(8,16,44,.45),0 12px 30px -18px rgba(8,16,44,.25)}

/* The top of the seam: the day itself, with the two systems either side of it. It stays at the top of the screen while
   the rows pass (the header lies on the deep top and scrolls away, so not under var(--menu)), so each side keeps its name, and leaves with the end of the line. The seam is drawn on through its own band */
.sf-sider{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:clamp(14px,1.6vw,24px);align-items:end;padding-block:14px 12px;background:linear-gradient(var(--nat),var(--nat)) 50% 100%/var(--soem) 12px no-repeat,#fff;transition:top .28s cubic-bezier(.16,1,.3,1)}
.sf-kort{display:none}
.sf-side{font-size:clamp(15px,1.1vw,17px);font-weight:600;letter-spacing:-.01em;padding-bottom:8px}
.sf-side--foer{text-align:right;color:var(--daempet)}
.sf-side--fra{color:var(--nat)}
.sf-dag{display:flex;flex-direction:column;align-items:center;padding:12px clamp(16px,1.6vw,24px);border-radius:10px;background:var(--nat);color:#fff;text-align:center;line-height:1.2}
.sf-dag b{font-size:clamp(18px,1.5vw,22px);font-weight:650;letter-spacing:-.02em}
.sf-dag small{margin-top:2px;font-size:clamp(13.5px,1vw,15px);font-weight:500;font-variant-numeric:tabular-nums}

/* The seam and the rows across it */
.sf-raekker{position:relative;list-style:none;padding-block:clamp(14px,1.6vw,22px) 0}
.sf-raekker::before{content:"";position:absolute;left:calc(50% - var(--soem) / 2);top:0;bottom:0;width:var(--soem);background:var(--nat)}
.sf-r{position:relative;display:grid;grid-template-columns:minmax(0,1fr) var(--fuge) minmax(0,1fr);row-gap:12px;padding-block:clamp(14px,1.5vw,22px)}
/* The subject sits on the seam: ringed where something crosses, grey where it stays behind, open where it is new */
.sf-r h3{grid-column:1/-1;justify-self:center;position:relative;z-index:1;padding:8px 16px;border-radius:999px;background:#fff;color:var(--nat);box-shadow:inset 0 0 0 var(--soem) var(--nat);font-size:clamp(15px,1.25vw,19px);font-weight:600;line-height:1.2;letter-spacing:-.012em;text-align:center}
.sf-r--bliver h3{background:var(--plint);color:var(--nat);box-shadow:none}
.sf-r--ny h3{background:#fff;color:var(--nat);box-shadow:none;outline:var(--soem) dashed var(--nat);outline-offset:calc(-1 * var(--soem))}
.sf-celle{font-size:clamp(15px,1.25vw,19px);line-height:1.45;text-wrap:pretty}
.sf-celle--foer{grid-column:1;text-align:right;color:var(--daempet)}
.sf-celle--fra{grid-column:3;color:var(--nat)}
.sf-knude{display:none}
/* Kommer ikke med: the right side stays quiet */
.sf-r--bliver .sf-celle--fra{color:var(--daempet)}
.sf-skjult{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* The automation switch, drawn off */
.sf-kontakt{appearance:none;display:inline-block;vertical-align:-.2em;width:2.1em;height:1.2em;margin:0 .5em 0 0;padding:0;border:0;border-radius:999px;background:var(--plint);position:relative;cursor:pointer;font:inherit;transition:background-color .25s}
.sf-kontakt::after{content:"";position:absolute;inset:-14px -8px}
.sf-kontakt i{position:absolute;left:.15em;top:.15em;width:.9em;height:.9em;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(13,23,54,.25);transition:translate .3s cubic-bezier(.2,.8,.2,1)}
.sf-kontakt.paa{background:var(--kobolt)}
.sf-kontakt.paa i{translate:.9em 0}
.sf-kontakt:focus-visible{outline:2px solid var(--kobolt);outline-offset:3px}

/* What both sides keep: one field across the seam, where the seam ends */
.sf-begge{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:0;padding:clamp(16px,1.6vw,22px) clamp(18px,2vw,28px);border-radius:14px;background:var(--is);text-align:center}
.sf-begge b{font-size:clamp(15px,1.15vw,17.5px);font-weight:600}
.sf-begge span{font-size:clamp(15px,1.12vw,17px);line-height:1.45;color:var(--daempet);max-width:34em}

/* The receipt: one table with each kind of row on a line */
.sf-kv{background:#fff;padding:var(--luft) 0}
.sf-kv h2{font-weight:500}
/* Straight after the receipt, on the same white */
.sf-mere.afsnit{padding-top:0}
.sf-kv__g{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:calc(var(--sp) * 2);row-gap:32px;align-items:center}
.sf-kv h2{font-size:var(--t-h2);line-height:1.08;letter-spacing:-.028em;max-width:12em}
.sf-kv__t p{margin-top:14px;font-size:var(--t-broed);line-height:1.55;color:var(--daempet);max-width:30em;text-wrap:pretty}
.sf-kv__t .sf-note{font-size:13.5px}
.sf-kvit{background:#fff;border-radius:var(--r-kort);box-shadow:0 0 0 1px var(--linje),0 30px 70px -40px rgba(13,23,54,.4);padding:clamp(18px,2vw,30px) clamp(18px,2vw,32px) clamp(10px,1vw,16px)}
.sf-kvit figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 20px;padding-bottom:14px}
.sf-kvit figcaption b{font-size:clamp(19px,1.6vw,24px);font-weight:600;letter-spacing:-.02em}
.sf-kvit figcaption span{font-size:clamp(14px,1vw,15.5px);color:var(--daempet);font-variant-numeric:tabular-nums}
.sf-kvit table{width:100%;border-collapse:collapse;font-size:clamp(14.5px,1.08vw,16.5px);font-variant-numeric:tabular-nums}
.sf-kvit th,.sf-kvit td{padding:11px 0;border-top:1px solid var(--linje);text-align:right;font-weight:500}
.sf-kvit thead th{border-top:0;padding-top:0;font-size:clamp(13px,.95vw,14.5px);color:var(--daempet)}
.sf-kvit tbody th{text-align:left;font-weight:600}
.sf-kvit td{width:6.4em}
.sf-kvit .sf-0{color:var(--daempet)}
.sf-kvit .sf-ikke{font-weight:650}
/* A row that did not come along gives its reason on hover, focus or a tap. The reason is always in the page, only
   moved out of sight, so a screen reader reads it with the number and nothing needs the script to be read */
.sf-kvit .sf-ikke{position:relative}
.sf-hvorfor{appearance:none;position:relative;display:inline-flex;align-items:center;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-decoration:underline dotted rgba(13,23,54,.45);text-decoration-thickness:1px;text-underline-offset:4px}
.sf-hvorfor::before{content:"";width:7px;height:7px;margin-right:8px;border-radius:50%;background:var(--kobolt)}
.sf-hvorfor::after{content:"";position:absolute;inset:-13px -12px -13px -14px}
.sf-hvorfor:focus-visible{outline:2px solid var(--kobolt);outline-offset:4px;border-radius:4px}
.sf-grund{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sf-grund>span:not(.sf-skjult){display:block}
/* Shown on focus, or pinned by the script, which takes over from the focus so a second tap closes it (.styret).
   Hover only counts where there is a pointer: on a phone it would stay after the tap */
:not(.styret)>table .sf-ikke:focus-within .sf-grund,.styret .sf-ikke:has(.sf-hvorfor:focus-visible) .sf-grund,.sf-ikke.aaben .sf-grund{z-index:4;top:calc(100% - 2px);right:-6px;width:max-content;max-width:min(19em,calc(100vw - 48px));height:auto;overflow:visible;clip-path:none;white-space:normal;padding:10px 14px;border-radius:10px;background:var(--nat);color:#fff;text-align:left;font-size:14.5px;font-weight:500;line-height:1.45;box-shadow:0 10px 28px -12px rgba(13,23,54,.5)}
@media (hover:hover){.sf-ikke:hover .sf-grund{z-index:4;top:calc(100% - 2px);right:-6px;width:max-content;max-width:min(19em,calc(100vw - 48px));height:auto;overflow:visible;clip-path:none;white-space:normal;padding:10px 14px;border-radius:10px;background:var(--nat);color:#fff;text-align:left;font-size:14.5px;font-weight:500;line-height:1.45;box-shadow:0 10px 28px -12px rgba(13,23,54,.5)}}
.sf-grund>span:not(.sf-skjult)+span{margin-top:3px}
.sf-kvit .sf-luk .sf-grund{display:none}


@media (max-width:999px){
  .sf-kv__g{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){.sf-sider{transition:none}}
@media (max-width:640px){
  .sf{--fuge:22px}
  /* A phone gets a slim bar across the whole width with the short names, which stays under the menu along the line */
  .sf-linje{padding:4px 16px 18px}
  .sf-sider{column-gap:10px;align-items:center;margin-inline:-16px;padding:7px 16px;background:#fff;border-bottom:1px solid var(--linje)}
  .sf-lang{display:none}
  .sf-kort{display:inline}
  .sf-side{font-size:13.5px;padding-bottom:0;white-space:nowrap}
  .sf-dag{padding:6px 11px;border-radius:8px}
  .sf-dag b{font-size:14.5px}
  .sf-dag small{font-size:12.5px}
  .sf-r{row-gap:10px}
  .sf-r h3{font-size:14.5px;padding:6px 12px}
  .sf-celle{font-size:14.5px;line-height:1.42}
  .sf-kvit td{width:4.6em}
  .sf-kvit thead th{font-size:12.5px}
  .sf-hvorfor::before{margin-right:5px}
}

/* The tour stacks on a phone: produkt.css sets the two columns without a breakpoint */
@media (max-width:899px){.pt-tur .nf-tur .nf-tavle:not(.vt-tavle){grid-template-columns:minmax(0,1fr)}}

/* Who does what during the switch */
.sf-hvem{padding:clamp(48px,5vw,80px) 0 0}
.sf-hvem__g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.sf-hvem__k{padding:clamp(20px,2.2vw,32px);border-radius:var(--r-kort);background:var(--is)}
.sf-hvem__k h3{margin-bottom:14px;font-size:clamp(17px,1.4vw,20px);font-weight:600;color:var(--nat)}
.sf-hvem__k ul{list-style:none;display:grid;gap:10px}
.sf-hvem__k li{position:relative;padding-left:18px;font-size:var(--t-broed);line-height:1.5;color:var(--daempet);text-wrap:pretty}
.sf-hvem__k li::before{content:"";position:absolute;left:0;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--kobolt)}
@media (max-width:760px){.sf-hvem__g{grid-template-columns:minmax(0,1fr)}}
