/* Arbeidstegningen. One layout, two skins.
   Layout rules never mention a skin. Skin rules never change a box. */

:root {
  --ink: #0B1A30;
  --paper: #F4F7F9;
  --white: #FFFFFF;
  --signal: #FF4D17;
  --muted: #4B5B70;
  --rule: rgba(11, 26, 48, .2);

  --pb: #12408C;            /* cyanotype */
  --pl: #F0F5FF;            /* drawn line */
  --pd: #BBD0F8;            /* dimension line */

  --m: 20px;
  --x: 100vw;
  --gx: 50vw;

  --sans: 'Cabinet Grotesk', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --hand: 'Patrick Hand', 'Bradley Hand', 'Segoe Print', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, dt, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; }
a { color: inherit; }

html:not(.js) .js-only { display: none; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 16px; background: var(--ink); color: #fff; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- layers ---------- */

.stage { position: relative; }
.layer { display: flow-root; position: relative; }

.skin-plan {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
  will-change: clip-path;
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
}

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--m); }

/* ---------- shared type ---------- */

h2 {
  width: fit-content;
  font-size: clamp(40px, 6vw, 88px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.03em;
  word-spacing: .06em;
}
h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }

a { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px;
  font-weight: 700; font-size: 17px; line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---------- image frames ---------- */

.frame { display: block; position: relative; overflow: hidden; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.r-port { aspect-ratio: 480 / 672; }
.r-port img { object-position: 50% 0; }
.r-shot { aspect-ratio: 1300 / 917; }
.r-phone { aspect-ratio: 780 / 1688; }

/* ---------- title block ---------- */

.tb {
  display: grid; grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid; border-left: 1px solid;
}
.tb > div { grid-column: span 12; padding: 9px 12px 10px; border-right: 1px solid; border-bottom: 1px solid; min-width: 0; }
.tb > .m6 { grid-column: span 6; }
.tb > .m4 { grid-column: span 4; }
.tb dt { font-size: 13px; line-height: 1.2; }
.tb dd { font-weight: 700; font-size: 16px; line-height: 1.25; margin-top: 3px; }

/* ---------- top bar ---------- */

.top { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: baseline; min-height: 44px; text-decoration: none; line-height: 44px; white-space: nowrap; }
.brand-h { font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; margin: 0 10px 0 2px; }
.brand-name { font-weight: 700; font-size: 17px; }
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a, .all { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; }
.all { margin-left: auto; text-decoration-thickness: 1px; }

/* ---------- hero ---------- */

.hero { position: relative; padding-top: 6px; padding-bottom: 64px; }
.name {
  font-size: 19vw;
  line-height: .86;
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 22px;
}
.name span { display: block; white-space: nowrap; }
.name-dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; margin-left: .045em; }

.hero-grid { display: grid; gap: 30px; }
.lead { font-size: 20px; line-height: 1.3; font-weight: 500; max-width: 26em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-port { width: 100%; }
.hero-side { display: grid; gap: 28px; margin-top: 34px; }
.motto { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.hero-words p + p { max-width: 30em; }

/* ---------- sections ---------- */

.sec { position: relative; padding-block: 84px; scroll-margin-top: 0; }
.sec-head { margin-bottom: 76px; }
.sec-lead { font-size: 20px; line-height: 1.3; font-weight: 500; margin-top: 18px; max-width: 28em; }

/* about */
.about h2 { margin-bottom: 36px; }
.about-grid { display: grid; gap: 40px; }
.about-text p { font-size: 21px; line-height: 1.38; font-weight: 500; }
.about-text p + p { margin-top: 1em; }
.facts { border-top: 2px solid; }
.facts > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid; }
.facts dt { font-size: 16px; }
.facts dd { font-weight: 700; }

/* work */
.proj { margin-top: 0; }
.proj + .proj, .pair { margin-top: 84px; }
.proj-media { position: relative; }
.r-phone { position: absolute; width: 25%; right: 14px; bottom: -30px; }
.proj-body { margin-top: 26px; }
.proj-media + .proj-body { margin-top: 52px; }
.proj-body h3 { font-size: clamp(32px, 3.4vw, 46px); }
.spec { margin: 16px 0 18px; border-top: 2px solid; }
.spec > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid; }
.spec dt { font-size: 16px; }
.spec dd { font-weight: 700; }
.proj-body p + p { margin-top: 14px; }
.proj-body .links { margin-top: 10px; }
.proj-body p + .proj-facts { margin-top: 30px; }
.proj-body .proj-facts + .links { margin-top: 22px; }
.pair { display: grid; gap: 72px; }
.more { margin-top: 56px; }
.more a { display: inline-flex; align-items: center; min-height: 48px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

/* creed */
.creed-list { display: grid; gap: 40px; }
.creed-list h3 { font-size: 28px; margin-bottom: 12px; max-width: 13em; }
.creed-list p { font-size: 18px; max-width: 30em; }

/* what I make */
.bq-wrap { position: relative; }
.bq { width: 100%; border-collapse: collapse; text-align: left; }
.bq th, .bq td { padding: 18px 0; vertical-align: baseline; border-bottom: 1px solid; }
.bq thead th { padding: 0 0 10px; font-size: 15px; font-weight: 500; border-bottom-width: 2px; }
.bq tbody th { position: relative; font-size: 20px; line-height: 1.15; font-weight: 700; padding-right: 14px; }
.bq tbody th span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.3; font-weight: 400; }
.bq .bq-unit { display: none; }
.bq .bq-price { text-align: right; white-space: nowrap; }
.bq td.bq-price { font-size: 20px; line-height: 1.15; font-weight: 800; }
.bq td.bq-price span { display: block; margin-top: 4px; font-size: 16px; font-weight: 400; }
.incl { margin-top: 64px; }
.incl h3 { font-size: 28px; margin-bottom: 18px; }
.incl ul { display: grid; gap: 12px 40px; }
.incl li { position: relative; padding-left: 28px; font-size: 18px; line-height: 1.4; }
.incl li::before { content: ''; position: absolute; left: 0; top: .42em; width: 12px; height: 12px; }
.incl .links { margin-top: 22px; }

/* check */
.make { padding-bottom: 42px; }
.check { padding-block: 42px 84px; }
.check-box { position: relative; display: grid; gap: 22px; padding: 34px 24px 36px; }
.check-box h2 { font-size: clamp(40px, 4.6vw, 64px); hyphens: manual; }
.check-text p { font-size: 18px; max-width: 34em; }
.check-text .actions { margin-top: 24px; }

/* contact */
.contact { padding-top: 40px; }
.contact h2 { margin-bottom: 30px; }
.mail { font-size: min(6.9vw, 80px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.mail a { display: inline-block; padding: 9px 0; text-decoration-thickness: .07em; text-underline-offset: .14em; overflow-wrap: anywhere; }
.tel { margin-top: 18px; font-size: 22px; font-weight: 500; }
.tel a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.reply { margin-top: 6px; width: fit-content; }

/* footer */
.foot { position: relative; padding: 84px 0 120px; }
.foot-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; margin-top: 20px; font-size: 16px; }
.foot-line a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- tablet ---------- */

@media (min-width: 760px) {
  :root { --m: 32px; }
  body { font-size: 18px; }
  .top { height: 76px; }

  .name { font-size: max(88px, min(13.4vw, 21.5vh)); margin-bottom: 52px; }
  .hero { padding-bottom: 44px; }
  .hero-grid { grid-template-columns: 1fr 280px; gap: 40px 48px; }
  .hero-port { width: 280px; }
  .hero-side { grid-column: 1 / -1; margin-top: 8px; }
  .lead { font-size: 23px; }

  .tb > div, .tb > .m6, .tb > .m4 { grid-column: span 12; }
  .tb > .c6 { grid-column: span 6; }
  .tb > .c4 { grid-column: span 4; }
  .tb > .c3 { grid-column: span 3; }
  .tb > .c2 { grid-column: span 2; }

  .sec { padding-block: 112px; }
  .sec-head { margin-bottom: 72px; }
  .about h2 { margin-bottom: 52px; }
  .about-text p { font-size: 24px; }
  .facts > div { grid-template-columns: 124px 1fr; }

  .pair { grid-template-columns: 1fr 1fr; gap: 24px; }
  .r-phone { width: 21%; right: 28px; bottom: -44px; }
  .proj + .proj, .pair { margin-top: 120px; }

  .bq .bq-unit { display: table-cell; width: 22%; }
  .bq th, .bq td { padding: 22px 0; }
  .bq tbody th, .bq td.bq-price { font-size: 26px; }
  .bq thead th { padding-bottom: 12px; }
  .incl ul { grid-template-columns: 1fr 1fr; }

  .make { padding-bottom: 56px; }
  .check { padding-block: 56px 112px; }
  .check-box { padding: 56px 48px 60px; }
  .contact { padding-top: 56px; }
  .tel { font-size: 26px; }
  .foot { padding-top: 112px; }
}

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  .nav { display: flex; }
  .all { margin-left: 8px; }
}

@media (min-width: 1000px) {
  .proj { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .proj-media { grid-column: 1 / span 7; }
  .proj .proj-body { grid-column: 9 / span 4; margin-top: 0; }
  .proj--flip .proj-media { grid-column: 6 / span 7; }
  .proj--flip .proj-body { grid-column: 1 / span 4; grid-row: 1; }
  .r-phone { right: -34px; bottom: -48px; }
  .creed-list { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .check-box { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .about-grid { grid-template-columns: 6fr 2fr 4fr; gap: 24px; }
  .facts { grid-column: 3; }
}

@media (min-width: 1180px) {
  :root { --m: 48px; }
  .hero { padding-bottom: 40px; }
  .hero-grid { grid-template-columns: .86fr 280px 1.14fr; gap: 56px; align-items: stretch; }
  .hero-side { grid-column: auto; margin-top: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
  .sec { padding-block: 136px; }
  .sec-head { margin-bottom: 84px; }
  .make { padding-bottom: 68px; }
  .check { padding-block: 68px 136px; }
  .motto { font-size: 42px; line-height: 1; letter-spacing: -.03em; margin-bottom: 16px; }
  .check-box { padding: 72px 72px 76px; }
  .contact { padding-top: 64px; }
}

/* =====================================================================
   SKIN: the finished build
   ===================================================================== */

.skin-build { background: var(--paper); color: var(--ink); }
.skin-build a { text-decoration-color: var(--signal); }
.skin-build a:hover { text-decoration-thickness: 4px; }
.skin-build .nav a:hover { text-decoration-line: underline; }
.skin-build :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skin-build .brand-dot, .skin-build .name-dot { background: var(--signal); }
.skin-build .frame { background: #E3E9EE; }
.skin-build .frame::after { box-shadow: inset 0 0 0 1px var(--ink); }
.skin-build .r-phone { box-shadow: 0 0 0 5px var(--paper); }

.skin-build .btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.skin-build .btn:hover { background: var(--ink); color: #fff; }
.skin-build .btn-main { background: var(--signal); box-shadow: none; }
.skin-build .btn-main:hover { background: var(--ink); color: #fff; }

.skin-build .tb, .skin-build .tb > div { border-color: var(--ink); }
.skin-build .tb > div { background: var(--white); }
.skin-build .tb dt, .skin-build .facts dt, .skin-build .spec dt, .skin-build .bq thead th { color: var(--muted); }
.skin-build .facts, .skin-build .spec { border-top-color: var(--ink); }
.skin-build .facts > div, .skin-build .spec > div { border-bottom-color: var(--rule); }

.skin-build .creed { background: var(--signal); }
.skin-build .creed :focus-visible { outline-color: var(--ink); }

.skin-build .bq th, .skin-build .bq td { border-bottom-color: var(--rule); }
.skin-build .bq thead th { border-bottom-color: var(--ink); }
.skin-build .bq tbody th span, .skin-build .bq td.bq-price span { color: var(--muted); }
.skin-build .incl li::before { background: var(--signal); }

.skin-build .check-box { background: var(--ink); color: #fff; }
.skin-build .check-box .btn-main { color: var(--ink); }
.skin-build .check-box .btn-main:hover { background: #fff; color: var(--ink); }
.skin-build .check-box :focus-visible { outline-color: #fff; }

.skin-build .foot-line { color: var(--muted); }
.skin-build .foot-line a { color: var(--ink); }

/* =====================================================================
   SKIN: the drawing
   ===================================================================== */

.skin-plan {
  color: var(--pl);
  background-color: var(--pb);
  background-image:
    url(img/papir.webp),
    linear-gradient(rgba(240, 245, 255, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 245, 255, .11) 1px, transparent 1px),
    linear-gradient(rgba(240, 245, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 245, 255, .045) 1px, transparent 1px);
  background-size: 384px 384px, 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  background-blend-mode: overlay, normal, normal, normal, normal;
}

.skin-plan a { text-decoration-color: var(--pd); text-decoration-thickness: 1px; }
.skin-plan .nav a { text-decoration: none; }
.skin-plan .is-focus { outline: 2px dashed var(--pl); outline-offset: 4px; }

.skin-plan .name, .skin-plan h2 {
  color: var(--pb);
  -webkit-text-stroke: 3px var(--pl);
  paint-order: stroke fill;
}
.skin-plan h2 { -webkit-text-stroke-width: 2.4px; }
.skin-plan .mail a { color: var(--pb); -webkit-text-stroke: 2.2px var(--pl); paint-order: stroke fill; text-decoration-color: var(--pl); }

.skin-plan .brand-dot { background: var(--pl); }
.skin-plan .name-dot { box-shadow: inset 0 0 0 1.5px var(--pl); }
.skin-plan .name-dot { background: radial-gradient(circle, var(--pl) 0 1.5px, transparent 2px); }

.skin-plan .frame::after {
  box-shadow: inset 0 0 0 1px var(--pl);
  background:
    linear-gradient(to top right, transparent calc(50% - .6px), var(--pd) calc(50% - .6px), var(--pd) calc(50% + .6px), transparent calc(50% + .6px)),
    linear-gradient(to bottom right, transparent calc(50% - .6px), var(--pd) calc(50% - .6px), var(--pd) calc(50% + .6px), transparent calc(50% + .6px));
}
.skin-plan .r-phone { background: var(--pb); }
.frame-label {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  transform: translate(-50%, -50%);
  padding: 6px 12px 7px;
  background: var(--pb);
  font: 400 16px/1.2 var(--hand);
  letter-spacing: .02em;
  color: var(--pl);
  text-align: center;
  white-space: nowrap;
}
.r-phone .frame-label { transform: translate(-50%, -50%) rotate(-90deg); }

.skin-plan .btn { box-shadow: inset 0 0 0 1px var(--pl); }
.skin-plan .btn-main {
  background: repeating-linear-gradient(45deg, rgba(240, 245, 255, .2) 0 1px, transparent 1px 7px);
}

.skin-plan .tb, .skin-plan .tb > div { border-color: var(--pl); }
.skin-plan .tb dt, .skin-plan .facts dt, .skin-plan .spec dt, .skin-plan .bq thead th { color: var(--pd); }
.skin-plan .facts, .skin-plan .spec { border-top-color: var(--pl); }
.skin-plan .facts > div, .skin-plan .spec > div { border-bottom-color: rgba(240, 245, 255, .4); }

.skin-plan .creed {
  background: repeating-linear-gradient(45deg, rgba(240, 245, 255, .1) 0 1px, transparent 1px 11px);
  box-shadow: inset 0 1px 0 var(--pl), inset 0 -1px 0 var(--pl);
}
.skin-plan .creed .wrap { position: relative; }
.skin-plan .creed .wrap::after {
  content: 'Fylt flate: signaloransje #FF4D17';
  position: absolute; right: var(--m); bottom: -62px;
  font: 400 15px/1 var(--hand); color: var(--pd);
}

.skin-plan .bq th, .skin-plan .bq td { border-bottom-color: rgba(240, 245, 255, .4); }
.skin-plan .bq thead th { border-bottom-color: var(--pl); }
.skin-plan .bq tbody th span, .skin-plan .bq td.bq-price span { color: var(--pd); }
.skin-plan .bq-wrap::before {
  content: 'Mengdeliste';
  position: absolute; right: 0; top: -36px;
  font: 400 19px/1 var(--hand); color: var(--pl);
}
.skin-plan .bq tbody { counter-reset: post; }
.skin-plan .bq tbody th::before {
  counter-increment: post; content: '0' counter(post);
  position: absolute; right: calc(100% + 9px); top: 22px;
  font: 400 14px/1.6 var(--hand); color: var(--pd);
  display: none;
}
.skin-plan .incl li::before { box-shadow: inset 0 0 0 1px var(--pl); }

.skin-plan .check-box {
  box-shadow: inset 0 0 0 1px var(--pl);
  background:
    repeating-linear-gradient(45deg, rgba(240, 245, 255, .09) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(240, 245, 255, .09) 0 1px, transparent 1px 9px);
}
.skin-plan .check-box::after {
  content: 'Fylt flate: blekk #0B1A30';
  position: absolute; right: 0; top: calc(100% + 10px);
  font: 400 15px/1 var(--hand); color: var(--pd);
}

.skin-plan .foot-line { color: var(--pd); }

/* section cut lines and markers */
.skin-plan [data-sec]::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--pd) 0 22px, transparent 22px 28px, var(--pd) 28px 31px, transparent 31px 37px);
  opacity: .75;
}
.skin-plan [data-sec]::after {
  content: attr(data-sec);
  position: absolute; left: 7px; top: -14px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pb);
  box-shadow: inset 0 0 0 1px var(--pl);
  font: 400 15px/1 var(--hand); color: var(--pl);
}
@media (min-width: 760px) {
  .skin-plan [data-sec]::after { left: 2px; }
  .skin-plan .bq tbody th::before { display: block; }
}
@media (min-width: 1180px) {
  .skin-plan [data-sec]::after { left: 9px; width: 30px; height: 30px; top: -15px; }
}

/* ---------- marks drawn by script (plan only) ---------- */

.marks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.dim { position: absolute; color: var(--pd); font: 400 15px/1 var(--hand); letter-spacing: .02em; }
.dim-h { height: 1px; background: currentColor; }
.dim-v { width: 1px; background: currentColor; }
.dim::before, .dim::after { content: ''; position: absolute; border: solid transparent; }
.dim-h::before { left: 0; top: -3px; border-width: 3.5px 9px 3.5px 0; border-right-color: currentColor; }
.dim-h::after { right: 0; top: -3px; border-width: 3.5px 0 3.5px 9px; border-left-color: currentColor; }
.dim-v::before { top: 0; left: -3px; border-width: 0 3.5px 9px 3.5px; border-bottom-color: currentColor; }
.dim-v::after { bottom: 0; left: -3px; border-width: 9px 3.5px 0 3.5px; border-top-color: currentColor; }
.dim-h.tiny::before { left: -9px; border-width: 3.5px 0 3.5px 9px; border-color: transparent transparent transparent currentColor; }
.dim-h.tiny::after { right: -9px; border-width: 3.5px 9px 3.5px 0; border-color: transparent currentColor transparent transparent; }
.dim-t { position: absolute; white-space: nowrap; color: var(--pl); }
.dim-h .dim-t { left: 50%; bottom: 6px; transform: translateX(-50%); }
.dim-h .dim-t.below { bottom: auto; top: 7px; }
.dim-v .dim-t { top: 50%; left: -11px; transform: translate(-50%, -50%) rotate(-90deg); }
.dim-v .dim-t.side-r { left: 12px; }
.ext { position: absolute; background: currentColor; opacity: .75; }
.dim-h .ext { width: 1px; }
.dim-h .ext-a { left: 0; }
.dim-h .ext-b { right: 0; }
.dim-v .ext { height: 1px; }
.dim-v .ext-a { top: 0; }
.dim-v .ext-b { bottom: 0; }

.guide { position: absolute; height: 0; border-top: 1px dashed var(--pd); opacity: .7; }
.tag { position: absolute; font: 400 15px/1 var(--hand); letter-spacing: .02em; color: var(--pd); white-space: nowrap; }

.note {
  position: absolute;
  width: max-content; max-width: 236px;
  font: 400 21px/1.15 var(--hand);
  color: var(--pl);
  transform: rotate(-2deg); transform-origin: 0 0;
}
.note svg, .cloud, .north { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.note svg { position: absolute; }
.note-right svg { width: 42px; height: 24px; right: calc(100% + 6px); top: 1px; }
.note-left svg { width: 42px; height: 24px; left: calc(100% + 6px); top: 1px; transform: scaleX(-1); }
.note-left { text-align: right; }
.note-below, .note-above { padding-left: 30px; }
.note-below svg { width: 24px; height: 30px; left: 0; top: -17px; }
.note-above { transform: translateY(-100%) rotate(-2deg); }
.note-above svg { width: 24px; height: 30px; left: 0; bottom: -17px; transform: scaleY(-1); }
.note-belowr { padding-right: 30px; text-align: right; }
.note-belowr svg { width: 24px; height: 30px; right: 0; top: -17px; transform: scaleX(-1); }
.note-tr { text-align: right; transform-origin: 100% 0; }
.marks.compact .note { font-size: 19px; max-width: 300px; }

.cloud { position: absolute; color: var(--pl); }
.cloud-mark { position: absolute; width: 30px; height: 28px; color: var(--pl); }
.cloud-mark svg { width: 100%; height: 100%; fill: var(--pb); stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; overflow: visible; }
.cloud-mark span { position: absolute; left: 0; right: 0; top: 9px; text-align: center; font: 400 14px/1 var(--hand); }

.north { position: absolute; width: 56px; height: 84px; color: var(--pl); }
.marks.compact .north { width: 44px; height: 66px; }
.north .solid { fill: currentColor; stroke: none; }
.north text { fill: currentColor; stroke: none; font: 400 15px var(--hand); }

/* ---------- the wipe line, the handle and the mode switch ---------- */

.wipe { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.wipe-line {
  position: absolute; top: 0; bottom: 0; left: 0; width: 4px;
  transform: translateX(calc(var(--x) - 2px));
  background: linear-gradient(90deg, #fff 0 1px, var(--ink) 1px 3px, #fff 3px 4px);
}
.wipe-grip {
  position: absolute; left: 0; bottom: 88px;
  width: 56px; height: 56px; margin-left: -28px;
  transform: translateX(var(--gx));
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--signal);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 2px #fff;
  pointer-events: auto;
  touch-action: pan-y;
  cursor: ew-resize;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.wipe-grip::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.wipe-grip svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wipe-grip:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; box-shadow: 0 0 0 2px #fff, 0 0 0 9px #fff; }
.chip {
  position: absolute; top: 50%; transform: translateY(-50%);
  padding: 7px 10px 8px;
  background: var(--ink); color: #fff;
  box-shadow: 0 0 0 1px #fff;
  font: 700 14px/1 var(--sans);
  white-space: nowrap;
}
.chip-l { right: calc(100% + 12px); }
.chip-r { left: calc(100% + 12px); }
.wipe.is-used .chip { display: none; }
.wipe.at-edge .wipe-line { visibility: hidden; }
html.is-dragging { cursor: ew-resize; -webkit-user-select: none; user-select: none; }

.modes {
  position: fixed; z-index: 51; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 3px;
  background: var(--ink);
  box-shadow: 0 0 0 1px #fff;
}
.modes button {
  min-height: 44px; padding: 0 14px;
  border: 0; background: transparent; color: #fff;
  font: 700 15px/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
}
.modes button:hover { background: rgba(255, 255, 255, .14); }
.modes button[aria-pressed="true"] { background: var(--signal); color: var(--ink); }
.modes button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.modes[hidden], .wipe[hidden] { display: none; }

@media (min-width: 760px) {
  .wipe-grip { width: 52px; height: 52px; margin-left: -26px; bottom: auto; top: 50%; margin-top: -26px; }
  .modes { left: 20px; bottom: 18px; transform: none; }
}

@media print {
  .skin-plan, .wipe, .modes { display: none; }
}

/* Mobil: merkelappene ved håndtaket gjentar bryteren rett under, så de skjules. */
@media (max-width: 640px) { .chip { display: none; } }
