/* Overenskomster. A quiet tool: the fields on the left, the page of the agreement on the right, the chosen field joined to the page */
/* The agreement is lifted into the dark top as one card: the sheet large on the left, the rates beside it on Is, the chosen rate joined to the page */
.af{padding-bottom:clamp(48px,5vw,80px)}
.af-v{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-rows:auto 1fr;align-items:stretch;background:var(--is);border-radius:var(--nf-r);padding:clamp(8px,.9vw,12px);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)}
.af-fane{padding:clamp(10px,1.4vw,22px) 0 0;min-width:0}
.af-ver{display:flex;align-items:center;gap:3px;margin-bottom:8px;padding-left:clamp(14px,1.6vw,24px)}
.af-ver[hidden]{display:none}
.af-ver>span{margin-right:8px;font-size:14.5px;color:var(--daempet);white-space:nowrap}
.af-ver button{appearance:none;border:0;background:none;font:inherit;color:var(--daempet);cursor:pointer;min-height:44px;padding:0 10px;border-radius:8px;font-size:14.5px;font-weight:600;font-variant-numeric:tabular-nums;transition:background-color .15s,color .15s}
.af-ver button[aria-pressed=true]{background:#fff;color:var(--nat)}
.af-liste{list-style:none}
.af-skift{display:none}
.af-felt{appearance:none;border:0;background:none;font:inherit;color:var(--nat);cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:clamp(50px,6.2vh,56px);padding:5px 12px 5px clamp(14px,1.6vw,24px);text-align:left;border-radius:0 10px 10px 0;transition:background-color .15s}
.af-felt span{display:block;font-size:16px;line-height:1.2;letter-spacing:-.012em;font-weight:600}
.af-felt small{display:block;margin-top:1px;font-size:14px;letter-spacing:0;color:var(--daempet);font-weight:500}
.af-felt b{font-size:clamp(17px,1.4vw,20px);letter-spacing:-.02em;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.af-felt:hover:not(.aktiv){background:rgba(255,255,255,.6)}
.af-felt.aktiv{background:#fff;color:var(--nat);box-shadow:0 0 0 1px var(--linje)}
.af-felt:focus-visible{outline-offset:-3px}

.af-dok{background:#fff;border-radius:8px;box-shadow:0 0 0 1px rgba(13,23,54,.06),0 1px 2px rgba(13,23,54,.05);padding:clamp(22px,2.6vw,40px) clamp(22px,3vw,48px);display:flex;flex-direction:column;min-width:0}
.af-dok__h{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:10px;border-bottom:1px solid var(--linje);font-size:14px;line-height:1.3;color:var(--daempet)}
.af-dok__h>span b{display:block;color:var(--nat);font-weight:600;font-size:15.5px;letter-spacing:-.01em}
.af-blad{flex:none;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.af-sider{display:grid;flex:1}
.js .af-side{grid-area:1/1;visibility:hidden}
.js .af-side.aktiv{visibility:visible}
.af-side{min-width:0;padding-top:clamp(14px,1.5vw,22px);display:flex;flex-direction:column}
html:not(.js) .af-side+.af-side{border-top:1px solid var(--linje);margin-top:20px}
.af-side .af-par{font-size:clamp(21px,1.8vw,26px);font-weight:600;line-height:1.1;letter-spacing:-.026em;color:var(--nat);text-wrap:balance;max-width:none;margin:clamp(12px,1.3vw,18px) 0 8px}
.af-side .af-par:first-child{margin-top:0}
.af-side p{font-size:clamp(16px,1.25vw,18px);line-height:1.5;letter-spacing:-.004em;text-wrap:pretty;margin-bottom:.5em;max-width:44em}
.af-side p b{font-weight:600}
.af-side footer{margin-top:auto;padding-top:10px;text-align:center;font-size:14px;color:var(--daempet);font-variant-numeric:tabular-nums}
/* The wording that belongs to the chosen field. It simply stands marked */
.af-q{border-radius:6px;transition:background-color .2s}
.af-q.paa{background:var(--dis)}
p.af-q{padding:.3em .5em;margin-inline:-.5em}
.af-side [data-v].paa{color:var(--kobolt-dyb);font-weight:700}
.af-v>figcaption{grid-column:2;padding:10px 12px 0 clamp(14px,1.6vw,24px);font-size:14px;line-height:1.35;color:var(--daempet);align-self:start}
.af-v>figcaption{grid-row:2}
.af-dok{grid-row:1/span 2;grid-column:1}
.af-fane{grid-row:1;grid-column:2}

/* One rate replaced by the next */
.nys{background:#fff;color:var(--nat);padding-block:0 var(--luft)}
main>.ov-styr{padding-top:0}
.nys__g{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,6fr);column-gap:clamp(32px,4.4vw,72px);row-gap:22px;align-items:center}
.nys h2{font-size:var(--t-h2);line-height:1.08;letter-spacing:-.028em}
.nys__g>div>p{margin-top:12px;font-size:var(--t-ingress);line-height:1.5;color:var(--daempet);max-width:30em;text-wrap:pretty}
.ny figcaption{font-size:16px;font-weight:600}
.ny__s{display:flex;flex-wrap:wrap;gap:6px clamp(20px,2.4vw,36px);margin-top:10px;padding-block:10px 12px;border-block:1px solid var(--linje)}
.ny__s span{display:block;font-size:14.5px;color:var(--daempet);margin-bottom:2px}
.ny__s b{display:inline-block;position:relative;font-size:clamp(38px,4vw,58px);line-height:1;letter-spacing:-.045em;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.ny__s small{font-size:max(14px,.32em);margin-left:.2em;letter-spacing:0;font-weight:500}
.ny__g b{color:var(--daempet)}
.ny__g b::after{content:"";position:absolute;left:-.03em;right:-.03em;top:53%;height:3px;border-radius:2px;background:currentColor}
.ny__k{margin-top:12px;font-size:15px;line-height:1.45;color:var(--daempet);max-width:36em;text-wrap:pretty}
.ny__k b{font-weight:600;color:var(--nat)}


@media (max-width:999px){
  .af-v{grid-template-columns:minmax(0,1fr);grid-template-rows:none;padding:8px}
  .af-fane,.af-dok,.af-v>figcaption{grid-column:1;grid-row:auto}
  .af-fane{padding-top:0}
  /* One field at a time, in a bar that stays with the page, so the choice and the wording are seen together */
  .js .af-fane{position:sticky;top:var(--menu,0px);z-index:3;margin:-8px -8px 0;padding:8px 8px 10px;background:var(--is);border-radius:var(--nf-r) var(--nf-r) 0 0}
  .af-ver{padding-right:0}
  .af-ver button{flex:1;padding:0 4px}
  .js .af-felter{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;align-items:center}
  .js .af-skift{display:block;appearance:none;border:0;cursor:pointer;position:relative;width:44px;height:44px;border-radius:9px;background:#fff}
  .js .af-skift::after{content:"";position:absolute;left:50%;top:50%;width:9px;height:9px;margin:-5px 0 0 -3px;border-top:2px solid var(--nat);border-right:2px solid var(--nat);rotate:225deg}
  .js .af-skift[data-skift="1"]::after{rotate:45deg;margin-left:-7px}
  .js .af-liste li:has(.af-felt:not(.aktiv)){display:none}
  .js .af-felt,.js .af-felt.aktiv{min-height:56px;padding:4px 12px;border-radius:9px;background:#fff;color:var(--nat)}
  .af-felt small{display:none}
  .af-dok{border-radius:var(--r-kort);margin-top:4px}
  .af-dok__h{flex-wrap:wrap}
  .af-dok__h>span{flex:1 1 100%}
  .af-v>figcaption{padding:10px 4px 4px}
  .nys__g{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){.af-q,.af-felt,.af-ver button{transition:none!important}}
/* The catalog list in the tour: room for the agreement's name */
.ov-kat .sa-ts{grid-template-columns:104px minmax(0,1.7fr) minmax(0,1fr) 42px 118px 34px}
/* The English kind and check labels are a few letters longer */
@media (min-width:761px){:lang(en) .ov-kat .sa-ts{grid-template-columns:104px minmax(0,1.4fr) minmax(0,1.2fr) 62px 132px 34px}}
@media (max-width:760px){.ov-kat .sa-ts{grid-template-columns:minmax(0,1fr) 34px}.ov-kat .sa-ts>span:nth-child(5){display:none}}
