/* The homepage's header and footer as in the mockup: the styles for what /home.js builds (see there). */
  .js .kop { display: none; }
  #ft { display: none !important; }   /* the mockup's option panel */
  .gk { position: relative; margin: 0 auto 1.75rem; }
  .gk.box { background: #24231d; padding: var(--pad); clip-path: polygon(calc(2*var(--p)) 0, calc(100% - 2*var(--p)) 0, calc(100% - 2*var(--p)) var(--p), calc(100% - var(--p)) var(--p), calc(100% - var(--p)) calc(2*var(--p)), 100% calc(2*var(--p)),
      100% calc(100% - 2*var(--p)), calc(100% - var(--p)) calc(100% - 2*var(--p)), calc(100% - var(--p)) calc(100% - var(--p)), calc(100% - 2*var(--p)) calc(100% - var(--p)),
      calc(100% - 2*var(--p)) 100%, calc(2*var(--p)) 100%, calc(2*var(--p)) calc(100% - var(--p)), var(--p) calc(100% - var(--p)), var(--p) calc(100% - 2*var(--p)), 0 calc(100% - 2*var(--p)),
      0 calc(2*var(--p)), var(--p) calc(2*var(--p)), var(--p) var(--p), calc(2*var(--p)) var(--p)); }
  .gk-in { position: relative; }
  /* on a phone: the name, the info and the flags centred under the logo, as on the site now */
  .gk.phone h1, .gk.phone .gk-row { position: static !important; }
  .gk.phone h1 { text-align: center; margin: 14px 0 0; }
  .gk.phone .gk-row { justify-content: center; flex-wrap: wrap; margin-top: 10px; }
  .gk svg { display: block; }
  .gk h1 { position: absolute; margin: 0; text-align: left; white-space: nowrap; line-height: 1; }
  .gk .gk-row { position: absolute; display: flex; align-items: center; gap: .9rem; white-space: nowrap; }
  .gk .langs { margin: 0; gap: .8rem; }
  .gk-info { margin: 0; white-space: nowrap; }
  /* name styles: ways to make the flat green less flat, all in the moss colours of the tile */
  .gk h1.st-schaduw { text-shadow: var(--o) var(--o) 0 #33663a; }
  .gk h1.st-diepte { text-shadow: calc(var(--o) * .5) calc(var(--o) * .5) 0 #5a9440, var(--o) var(--o) 0 #33663a, calc(var(--o) * 1.5) calc(var(--o) * 1.5) 0 #1f3d24; }
  .gk h1.st-licht { background: linear-gradient(180deg, #d4e88a 8%, #93c14f 48%, #5a9440 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .gk h1.st-rand { -webkit-text-stroke: calc(var(--o) * .45) #14130f; paint-order: stroke fill; text-shadow: var(--o) var(--o) 0 #14130f; }
  .gk h1.st-mos { background: var(--mos) 0 0 / calc(var(--o) * 2) calc(var(--o) * 2); -webkit-background-clip: text; background-clip: text; color: transparent; image-rendering: pixelated; }
  .gk h1.st-gloed { text-shadow: 0 0 .3em #93c14f55, 0 0 .08em #93c14f88; }
  .gk h1.st-lichtschaduw { background: linear-gradient(180deg, #d4e88a 8%, #93c14f 48%, #5a9440 96%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(var(--o) var(--o) 0 #33663a); }
  .gk-info.mono { font: 400 var(--isz)/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .01em; }
  /* exactly the font of the small text in the footer: Inter bold 0.8rem, capitals, 0.1em spacing */
  .gk-info.footer { font: 700 .8rem/1 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
  .gk-info.caps { font: 600 calc(var(--isz) * .8)/1 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
  .gk-info [lang="en"] { display: none; }
  html:has(#lang-en:checked) .gk-info [lang="nl"] { display: none; }
  html:has(#lang-en:checked) .gk-info [lang="en"] { display: inline; }

  footer { position: relative; }
  /* the drawing centred in the height of the footer, then a bit down; the side parts a bit up */
  footer { display: flex; flex-direction: column; justify-content: center; }
  footer .shelf { margin-top: 1.5rem; transform: translate(var(--mx, 0px), var(--my, 0px)); }
  .fv { position: absolute; top: 50%; transform: translate(var(--dx, 0px), calc(-50% - 1.25rem + var(--dy, 0px)));   /* the side parts a bit up */ width: 16rem; text-align: left; color: #fff; padding: .9rem 1rem; box-sizing: border-box; }
  .fv.l { left: max(1rem, (100% - 70rem) / 2); } .fv.r { right: max(1rem, (100% - 70rem) / 2); }
  footer.fv-swap .fv.l { left: auto; right: max(1rem, (100% - 70rem) / 2); } footer.fv-swap .fv.r { right: auto; left: max(1rem, (100% - 70rem) / 2); }
  .fv.rand-lijn { border: 1.5px solid #ffffffaa; }
  .fv.rand-golf { border: 13.81px solid transparent; border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='45.62' height='45.62' viewBox='0 0 45.62 45.62'%3E%3Cpath d='M13.81 2.35L14.56 1.55L15.31 0.96L16.06 0.75L16.81 0.96L17.56 1.55L18.31 2.35L19.06 3.15L19.81 3.74L20.56 3.95L21.31 3.74L22.06 3.15L22.81 2.35L23.56 1.55L24.31 0.96L25.06 0.75L25.81 0.96L26.56 1.55L27.31 2.35L28.06 3.15L28.81 3.74L29.56 3.95L30.31 3.74L31.06 3.15L31.81 2.35L32.61 1.58L33.49 1.07L34.36 1L35.13 1.4L35.75 2.2L36.19 3.22L36.52 4.25L36.85 5.09L37.29 5.61L37.94 5.82L38.84 5.8L39.91 5.71L41.03 5.73L42 5.99L42.67 6.55L42.93 7.39L42.8 8.39L42.4 9.42L41.9 10.38L41.54 11.2L41.48 11.89L41.8 12.49L42.45 13.11L43.27 13.81L44.07 14.56L44.65 15.31L44.87 16.06L44.65 16.81L44.07 17.56L43.27 18.31L42.47 19.06L41.88 19.81L41.67 20.56L41.88 21.31L42.47 22.06L43.27 22.81L44.07 23.56L44.65 24.31L44.87 25.06L44.65 25.81L44.07 26.56L43.27 27.31L42.47 28.06L41.88 28.81L41.67 29.56L41.88 30.31L42.47 31.06L43.27 31.81L44.04 32.61L44.54 33.49L44.62 34.36L44.22 35.13L43.42 35.75L42.4 36.19L41.37 36.52L40.53 36.85L40.01 37.29L39.8 37.94L39.82 38.84L39.91 39.91L39.89 41.03L39.63 42L39.06 42.67L38.23 42.93L37.23 42.8L36.19 42.4L35.24 41.9L34.42 41.54L33.73 41.48L33.12 41.8L32.51 42.45L31.81 43.27L31.06 44.07L30.31 44.65L29.56 44.87L28.81 44.65L28.06 44.07L27.31 43.27L26.56 42.47L25.81 41.88L25.06 41.67L24.31 41.88L23.56 42.47L22.81 43.27L22.06 44.07L21.31 44.65L20.56 44.87L19.81 44.65L19.06 44.07L18.31 43.27L17.56 42.47L16.81 41.88L16.06 41.67L15.31 41.88L14.56 42.47L13.81 43.27L13.01 44.04L12.13 44.54L11.26 44.62L10.48 44.22L9.87 43.42L9.42 42.4L9.09 41.37L8.77 40.53L8.33 40.01L7.68 39.8L6.78 39.82L5.71 39.91L4.59 39.89L3.62 39.63L2.95 39.06L2.69 38.23L2.81 37.23L3.22 36.19L3.72 35.24L4.08 34.42L4.14 33.73L3.82 33.12L3.17 32.51L2.35 31.81L1.55 31.06L0.96 30.31L0.75 29.56L0.96 28.81L1.55 28.06L2.35 27.31L3.15 26.56L3.74 25.81L3.95 25.06L3.74 24.31L3.15 23.56L2.35 22.81L1.55 22.06L0.96 21.31L0.75 20.56L0.96 19.81L1.55 19.06L2.35 18.31L3.15 17.56L3.74 16.81L3.95 16.06L3.74 15.31L3.15 14.56L2.35 13.81L1.58 13.01L1.07 12.13L1 11.26L1.4 10.48L2.2 9.87L3.22 9.42L4.25 9.09L5.09 8.77L5.61 8.33L5.82 7.68L5.8 6.78L5.71 5.71L5.73 4.59L5.99 3.62L6.55 2.95L7.39 2.69L8.39 2.81L9.42 3.22L10.38 3.72L11.2 4.08L11.89 4.14L12.49 3.82L13.11 3.17Z' fill='%23ffffff' fill-opacity='.06' stroke='%23ffffff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 13.81 fill / 13.81px round; padding: .2rem .3rem; }
  .fv h3 { margin: 0 0 .55rem; font: 700 .68rem/1.2 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
  .fv p, .fv li { margin: 0; font: 400 .82rem/1.45 "JetBrains Mono", ui-monospace, monospace; }
  .fv p + p, .fv li + li { margin-top: .55rem; }
  .fv ol, .fv ul { margin: 0; padding: 0; list-style: none; }
  .fv .it { display: flex; gap: .6rem; align-items: flex-start; }
  .fv .ic { flex: 0 0 auto; width: 1.4rem; height: 1.4rem; margin-top: .05rem; }
  .fv .nr, .fnr { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; background: #fff; color: #0047ab;
    font: 800 .72rem/1 Inter, sans-serif; flex: 0 0 auto; }
  .fnr { position: absolute; z-index: 3; box-shadow: 2px 2px 0 #002a66; }
  /* one label for every box like this: the step titles and the "let op" note */
  .mk-tag, .fv h3.mk-tag { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .3rem .55rem .3rem .3rem; background: #fff; color: #111;
    font: 800 .72rem/1 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
    box-shadow: 2px 2px 0 #002a66; opacity: 1; vertical-align: middle; }
  .mk-tag .sq { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; flex: 0 0 auto;
    background: #0047ab; color: #fff; font: 800 .7rem/1 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; }
  .mk-tag .sq.warn { background: #ffbb29; color: #111; width: auto; padding: 0 .28rem; letter-spacing: .02em; }
  .mk-tag.red { color: var(--red); font-size: .86rem; padding: .38rem .68rem .38rem .38rem; gap: .5rem; }
  .mk-tag.red .sq.warn { height: 1.4rem; font-size: .84rem; padding: 0 .34rem; }
  .fv h3.mk-tag { letter-spacing: .04em; }
  .fv.met-st { width: 19.75rem; }   /* room for the longest label, "de back-up URL-code" */
  .fv.met-st h3.mk-tag { margin: 0 0 .45rem; }
  .fv.l.met-st.een .rows { display: grid; grid-auto-rows: 1fr; gap: 26px; }
  .fv.l.met-st.een .stap { display: grid; grid-template-columns: 103.24px 1fr; gap: .75rem; align-items: start; }
  .fv.l.met-st.een .stap + .stap { margin-top: 0; }
  .fv.l.met-st.een .mini { width: 103.24px; }
  .fv.fotos { padding: 0; border: 0; width: 17.5rem; }
  .fv.fotos .kopje { text-align: center; margin-bottom: .9rem; }
  .fv.fotos .kopje .mk-tag { margin: 0 0 .7rem; }
  .fv.fotos .kopje .cap { margin-bottom: .6rem; }
  .fv.fotos .zin { margin: 0 auto; max-width: 17.5rem; text-wrap: balance; }
  /* one font for all the small text in the footer: Inter, the font of the caption, in normal case */
  /* one style for all the small text in the footer, the same as the caption: Inter bold, capitals, wide spacing */
  footer .fv p, footer .fv li, footer .fv .sub, footer .fv .zin, footer .fv.l.met-st p, footer .fv.fotos .cap {
    font: 700 .8rem/1.55 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: .9; }
  .fv.l .kopje { text-align: center; }
  .fv.l .kopje .mk-tag { margin: 0 0 .7rem; }
  footer .fv.l.met-st p.intro-l { margin: 0 auto 1.9rem; text-align: center; text-wrap: balance; max-width: 15rem; }   /* above the three steps, like the caption on the right */
  .fv.fotos .cap { display: block; margin: 0 auto .7rem; text-align: center; text-wrap: balance; max-width: 15rem; }
  .fv.fotos .duo { display: flex; gap: 12px; }
  .fv.fotos .duo > div { flex: 1 1 0; }
  .fv.fotos .duo figure { width: auto; }
  .fv.fotos .sub { display: block; margin-top: .45rem; text-align: center; }
  .mk-note .mk-tag { margin-right: .5rem; }
  .mk-note { max-width: 25rem; margin: 2.1rem auto 0; color: #fff; font: 400 .8rem/1.5 "JetBrains Mono", ui-monospace, monospace; text-align: center; opacity: 1; }
  .mk-note [lang="en"] { display: none; }
  html:has(#lang-en:checked) .mk-note [lang="nl"] { display: none; }
  html:has(#lang-en:checked) .mk-note [lang="en"] { display: inline; }
  .shelf.mk-nums { overflow: visible; }
  /* the frame a photo gets on a story page (story.css): cream, .45 rem around it */
  .fv.fotos figure { margin: 0; padding: 7px; background: #efe8d4; box-shadow: 3px 4px 0 #00000047; flex: none; }
  .fv.fotos img { display: block; width: 120px; height: 160px; image-rendering: pixelated; }
  .fv.fotos.schuin .duo { position: relative; display: block; height: 17.6rem; }
  .fv.fotos.schuin .duo > div { position: absolute; width: calc(160px + .9rem); }
  .fv.fotos.schuin .duo > div:first-child { left: 0; top: .4rem; transform: rotate(-5deg); }
  .fv.fotos.schuin .duo > div:last-child { right: 0; top: 1.4rem; transform: rotate(4deg); }
  .fv .stap { display: grid; grid-template-columns: 6.2rem 1fr; gap: .7rem; align-items: start; }
  .fv .stap + .stap { margin-top: .8rem; }
  .fv .mini.waas, .fv.l .mini.waas, .fv.l.met-st.een .mini.waas { filter: none; }
  .fv .mini { display: block; width: 6.2rem; height: auto; filter: drop-shadow(2px 3px 0 #00000047); }
  /* headings as a small white label with black letters, like a sticker */
  /* the first step on its own in the left box: bigger, the sticker on top, all centred in the height */
  .fv.l.met-st { display: flex; flex-direction: column; justify-content: center; }
  .fv.l.met-st .stap { grid-template-columns: 1fr; gap: .8rem; }
  .fv.l.met-st .mini { width: 10rem; }
  .fv [lang="en"] { display: none; }
  html:has(#lang-en:checked) .fv [lang="nl"] { display: none; }
  html:has(#lang-en:checked) .fv [lang="en"] { display: revert; }
  /* too narrow for the boxes beside the drawing: under it, side by side or stacked */
  @media (max-width: 77rem) {
    .fvwrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1.5rem auto 0; max-width: 34rem; }
    .fv { position: static; transform: none; width: 16rem; }
  }
  .fv-dots, .fv-let { display: none; }
  @media (max-width: 40rem) {
    .fvwrap.car { display: block; position: relative; overflow: hidden; max-width: none; margin: 1rem -16px 0; touch-action: pan-y; user-select: none; }
    .fvwrap.car > .fv { width: 100% !important; max-width: none !important; height: auto !important; margin: 0 !important;
      box-sizing: border-box !important; padding: 0 16px !important; will-change: transform; }
    .fvwrap.car > .fv.car-cur { position: relative !important; top: 0 !important; left: 0 !important; right: auto !important; }
    .fvwrap.car > .fv.car-oth { position: absolute !important; left: 0 !important; top: 0 !important; right: auto !important; }
    .fvwrap.car > .fv > * { max-width: 20rem; margin-left: auto !important; margin-right: auto !important; }
    /* the top text of both pages flush left, under the LET OP label */
    .fvwrap.car .intro-l, .fvwrap.car .kopje, .fvwrap.car .kopje .cap, .fvwrap.car .kopje .zin { text-align: left !important; }
    .fvwrap.car .kopje .cap, .fvwrap.car .kopje .zin { margin-left: 0 !important; max-width: none !important; }
    .fvwrap.car .fv > p.intro-l { max-width: 20rem !important; }
    .fvwrap.car > .fv.fotos .duo { margin-left: max(0px, calc((100% - 20rem) / 2)) !important; }
    .fvwrap.car > .fv.met-st > * { max-width: 20rem; }
    .fvwrap.car > .fv.fotos .duo { width: 280px; max-width: 100%; }
    .fvwrap.car .kopje .mk-tag.red { display: none; }          /* the one LET OP above the pages instead */
    footer.car-on .fv-let { display: block; width: 100%; max-width: calc(20rem + 32px); box-sizing: border-box; text-align: left; margin: 2.4rem auto 0; padding: 0 16px; }   /* room above it for the hint under the sticker */
    footer.car-on .fv-let [lang="en"] { display: none; }
    html:has(#lang-en:checked) footer.car-on .fv-let [lang="nl"] { display: none; }
    html:has(#lang-en:checked) footer.car-on .fv-let [lang="en"] { display: inline; }
    footer.car-on .fv-dots { display: flex; justify-content: center; gap: 12px; margin: 1.3rem 0 0; }
    .fv-track { position: relative; display: flex; gap: 12px; padding: 0 16px; overflow: hidden;
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
              mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
    .fv-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px; background: #fff; opacity: .35; cursor: pointer; }
    .fv-pill { position: absolute; left: 0; top: 0; width: 24px; height: 9px; border-radius: 5px; background: #fff; pointer-events: none; }
  }
  .ft { position: fixed; right: 16px; bottom: 16px; z-index: 99; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
    background: #24231d; color: #e4dcc4; border: 1px solid #93c14f55; border-radius: 12px; box-shadow: 0 10px 40px #000a;
    font: 500 12px/1.3 Inter, "Helvetica Neue", Arial, sans-serif; padding: 11px; display: grid; gap: 6px; }
  .ft .head { display: flex; cursor: pointer; } .ft .head b { flex: 1; color: #93c14f; letter-spacing: .04em; } .ft .head span { color: #a39c86; }
  .ft.closed > :not(.head) { display: none; }
  /* on a phone the folded panel is a small button at the top right, so it never covers the end of the page */
  @media (max-width: 40rem) { .ft.closed { top: 12px; bottom: auto; right: 12px; width: auto; padding: 8px 12px; }
    .ft.closed .head { position: static; margin: 0; padding: 0; gap: 10px; } }
  /* a big button that always stays at the bottom of the panel, to fold it away (on a phone the panel fills the screen) */
  .ft .ft-close { position: sticky; bottom: -11px; flex: none; margin: 4px -11px -11px; padding: 16px; border: 0; border-radius: 0 0 12px 12px;
    background: #93c14f; color: #1a1914; font: 700 15px/1 Inter, "Helvetica Neue", Arial, sans-serif; }
  .ft .head { position: sticky; top: -11px; margin: -11px -11px 0; padding: 11px; background: #24231d; z-index: 1; }
  .ft .lab { color: #a39c86; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
  .ft .row { display: flex; gap: 4px; flex-wrap: wrap; }
  .ft button { flex: 1; padding: 5px 6px; border-radius: 6px; border: 1px solid #93c14f66; background: #93c14f1a; color: #e4dcc4; font: 600 11px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
  .ft button.on { background: #93c14f; color: #1a1914; }
  .ft input[type=range] { width: 100%; accent-color: #93c14f; }
  .ft .say { color: #a39c86; font-size: 11px; user-select: all; }

/* the whole mini sticker above the photos, as big as the ones by the steps, centred over the photos */
.fv.fotos .ms-heel { width: 280px; max-width: 100%; margin: 0 0 1.5rem; }
.fv .mini.heel { position: relative; z-index: 43; display: block; width: 103.24px; margin: 0 auto; filter: none; }   /* over the yellow line, which starts under it */
@media (max-width: 40rem) {
  .fvwrap.car > .fv.fotos .ms-heel { margin-left: max(0px, calc((100% - 20rem) / 2)) !important; }
}

/* no white guide lines from the object to the big sticker in the drawing (for now) */
.shelf polygon[opacity=".07"], .shelf line[stroke="#fff"] { display: none; }
@media (max-width: 40rem) {
  .fv.fotos .ms-heel { display: none !important; }   /* the arrow comes from the big sticker instead */
  /* the photos a little bigger, so their stickers show better */
  .fvwrap.car > .fv.fotos .duo { width: 316px !important; }
  .fv.fotos .duo img { width: 138px !important; height: 184px !important; }
  /* the hint under the big sticker right under its yellow line, flush against the line falling past it */
  #kp-hint-m { box-sizing: border-box; margin-top: 1px; padding-right: 12px; text-align: right !important; }
}

/* the belt in the logo runs (see belt() in home.js): the stickers in a layer of their own over the belt */
.belt-layer { position: absolute; top: 0; overflow: hidden; pointer-events: none; }
.belt-strip { position: absolute; top: 0; will-change: transform; }
/* no info line under the name ("Persoonlijk archiefproject · 2026"), on a computer either */
.gk .gk-row { display: none; }
/* on a phone no info line under the name, and the name lower: optically as much room above its letters (to the
   logo's belt) as under them (to the subtitle's letters), measured on the screen: 44 px each */
.gk.phone .gk-info, .gk.phone .gk-row { display: none; }
.gk.phone h1 { margin-top: 36px; }
