/* Flow Dance Bergen's own site. The school's custom site in the platform; not built from the platform's design elements. */
body { margin: 0; font: 14px system-ui; }
img { max-width: 100%; }
[hidden] { display: none !important; }
  /* Layout: each fact on its own line with air around it; the only drawn line is the wordmark's.
     Two colours and their mixes. One typeface, light and large. */
  :root {
    --ground: #F8C9A8; --raised: #FCE4D4; --ink: #3A1830; --soft: #6A444E; --rule: rgba(58, 24, 48, 0.22);
    --face: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
    --s1: 0.95rem; --s2: 1.125rem; --s3: 1.5rem; --s4: 2.1rem; --head: 4.75rem;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --ground: #3A1830; --raised: #4B283B; --ink: #F8C9A8; --soft: #C99D8A; --rule: rgba(248, 201, 168, 0.24); color-scheme: dark; }
  }
  :root[data-theme="dark"] { --ground: #3A1830; --raised: #4B283B; --ink: #F8C9A8; --soft: #C99D8A; --rule: rgba(248, 201, 168, 0.24); color-scheme: dark; }
  :root[data-face="day"] { --ground: #F8C9A8; --raised: #FCE4D4; --ink: #3A1830; --soft: #6A444E; --rule: rgba(58, 24, 48, 0.22); color-scheme: light; }
  :root[data-face="evening"] { --ground: #3A1830; --raised: #4B283B; --ink: #F8C9A8; --soft: #C99D8A; --rule: rgba(248, 201, 168, 0.24); color-scheme: dark; }

  body { background: var(--ground); color: var(--ink); font-family: var(--face); font-size: var(--s2); line-height: 1.55; }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ground); }
  h1, h2, h3, p, ul, ol { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
  button, input, select { font: inherit; color: inherit; }
  :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
  .wrap { max-width: 70rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

  .top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ground); }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--head); }
  /* The swallow before the name makes the mark about a fifth wider; the letters keep the size they had. */
  .mark { display: block; width: clamp(10.3rem, 26.2vw, 14.9rem); color: var(--ink); }
  .mark svg { display: block; width: 100%; height: auto; overflow: visible; }
  .top nav { display: flex; gap: 1.5rem; }
  .top nav a { text-decoration: none; padding: 0.4rem 0; }
  .top nav a[aria-current="page"] { text-decoration: underline; }

  main { position: relative; padding-bottom: 7rem; }
  .pg { position: relative; background: var(--ground); min-height: 88vh; }
  .pg > .wrap { display: flex; flex-direction: column; gap: 5.5rem; padding-block: 2rem 4rem; }
  .pg.travel { transition: clip-path 900ms cubic-bezier(0.45, 0, 0.2, 1); }
  @media (prefers-reduced-motion: reduce) { .pg.travel { transition: opacity 200ms linear; } }
  section { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
  h1 { font-weight: 300; font-size: clamp(2.5rem, 7.4vw, 5.2rem); line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
  h1:focus { outline: none; }
  h2 { font-weight: 300; font-size: var(--s4); line-height: 1.15; text-wrap: balance; }
  h3 { font-weight: 400; font-size: var(--s3); line-height: 1.25; }
  p { max-width: 60ch; }
  .fact { font-size: var(--s3); line-height: 1.3; }
  .soft { color: var(--soft); }
  .small { font-size: var(--s1); }
  .back { align-self: flex-start; margin-bottom: -3.5rem; }
  .pill { display: inline-flex; align-items: center; justify-content: center; appearance: none; border: 0; border-radius: 999px; padding: 0.8em 1.6em; background: var(--ink); color: var(--ground); font-weight: 500; text-decoration: none; cursor: pointer; align-self: flex-start; min-height: 3rem; }
  .pill[aria-busy="true"] { opacity: 0.72; }
  .pill:active, .row:active { transform: translateY(1px); }
  .go::after { content: "\2192"; margin-left: 0.45em; text-decoration: none; display: inline-block; }

  /* Front: the next event leads. */
  .lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem; align-items: center; }
  .lead .words { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
  .lead .now { min-height: 1.7em; opacity: 0; transition: opacity 600ms; }
  .lead .now.on { opacity: 1; }
  .lead .pill { margin-top: 0.8rem; }
  .pic { border-radius: 1.5rem; overflow: hidden; background: var(--raised); }
  .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .lead .pic { aspect-ratio: 4 / 5; max-height: 76vh; justify-self: end; width: 100%; }
  @media (max-width: 46rem) { .lead .now { min-height: 3.3em; } .lead { grid-template-columns: 1fr; } .lead .pic { max-height: none; } .pg > .wrap { gap: 4rem; } }

  .rows { display: flex; flex-direction: column; }
  .row { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1.1rem; align-items: center; padding: 0.9rem 0; text-decoration: none; }
  .row .pic { width: 4.5rem; aspect-ratio: 1; border-radius: 0.9rem; }
  .row .t { display: flex; flex-direction: column; }
  .row .t b { font-weight: 400; font-size: var(--s3); line-height: 1.25; }
  a.row .chev { font-size: var(--s3); }

  .people { display: flex; flex-direction: column; gap: 3rem; }
  .person { display: grid; grid-template-columns: minmax(9rem, 16rem) 1fr; gap: 2rem; align-items: start; }
  .person .pic { aspect-ratio: 2 / 3; }
  .person .txt { display: flex; flex-direction: column; gap: 0.9rem; }
  @media (max-width: 40rem) { .person { grid-template-columns: 1fr; } .person .pic { max-width: 16rem; } }

  .day { display: flex; flex-direction: column; gap: 1.1rem; }
  .prog { position: relative; padding-left: 1.5rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1.3rem; row-gap: 0.85rem; font-variant-numeric: tabular-nums; }
  .prog li { display: contents; }
  .prog .time { color: var(--soft); white-space: nowrap; }
  .prog .what { display: flex; flex-direction: column; min-width: 0; }
  .prog .rest { color: var(--soft); }
  .prog.mine::before { content: ""; position: absolute; left: 0; top: 0.35rem; bottom: 0.35rem; width: 5px; border-radius: 99px; background: var(--ink); transform: scaleY(0); transform-origin: top; }
  .prog.mine.drawn::before { transform: scaleY(1); transition: transform 1800ms cubic-bezier(0.45, 0, 0.2, 1); }
  @media (prefers-reduced-motion: reduce) { .prog.mine.drawn::before { transition: none; } }
  .ticket-row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: space-between; background: var(--raised); border-radius: 1.5rem; padding: 1.5rem; }
  .ticket-row .t { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; flex: 1 1 18rem; }
  .places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 2.5rem; }
  .place { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
  .place .pics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; width: 100%; }
  .place .pic { aspect-ratio: 5 / 3; border-radius: 0.9rem; }
  .poster { max-width: 26rem; aspect-ratio: 1100 / 922; }

  /* Order */
  .order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 3.5rem; align-items: start; }
  @media (max-width: 52rem) { .order { grid-template-columns: 1fr; } }
  .form { display: flex; flex-direction: column; gap: 2.6rem; }
  .tiers { display: flex; flex-direction: column; gap: 0.45rem; }
  .tier { display: flex; justify-content: space-between; gap: 1rem; }
  .tier.out { color: var(--soft); }
  .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.1rem 1.6rem; }
  .field { position: relative; display: block; }
  .field input, .field select { width: 100%; box-sizing: border-box; background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 1.5rem 0 0.45rem; }
  .field select { appearance: none; }
  .field span { position: absolute; left: 0; top: 1.45rem; color: var(--soft); transform-origin: left top; transition: transform 250ms; pointer-events: none; }
  .field input:focus + span, .field input:not(:placeholder-shown) + span, .field select + span { transform: translateY(-1.3rem) scale(0.82); }
  .field input:focus-visible, .field select:focus-visible { outline: none; border-bottom-width: 3px; padding-bottom: calc(0.45rem - 1.5px); }
  fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
  legend { padding: 0; color: var(--soft); margin-bottom: 0.7rem; }
  .choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .choices label { position: relative; }
  .choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .choices span { display: block; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.5em 1.2em; }
  .choices input:checked + span { background: var(--ink); color: var(--ground); }
  .choices input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
  .check { display: flex; gap: 0.7rem; align-items: center; }
  .check input { width: 1.25rem; height: 1.25rem; accent-color: var(--ink); }
  .sum { background: var(--raised); border-radius: 1.5rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; position: sticky; top: calc(var(--head) + 1rem + env(safe-area-inset-top, 0px)); }
  .sum .pill { margin-top: 0.9rem; align-self: stretch; }
  .msg { min-height: 1.6em; }

  /* Ticket */
  .tk { background: var(--raised); border-radius: 1.5rem; padding: 1.75rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; max-width: 40rem; }
  .tk .t { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
  .tk .code { width: 7.5rem; aspect-ratio: 1; border: 1.5px solid var(--ink); border-radius: 0.9rem; display: grid; place-items: center; text-align: center; font-size: var(--s1); color: var(--soft); }
  @media (max-width: 30rem) { .tk { grid-template-columns: 1fr; } }

  .values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 2.2rem 3rem; }
  .values div { display: flex; flex-direction: column; gap: 0.4rem; }
  .foot { display: flex; flex-wrap: wrap; gap: 0.9rem 2rem; padding-block: 2.5rem; color: var(--soft); }
  .foot .mail { user-select: all; }

  /* The visitor's place, docked at the lower edge. */
  .dock { position: fixed; z-index: 25; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 1.1rem; background: var(--ink); color: var(--ground); border-radius: 999px; padding: 0.55rem 0.6rem 0.55rem 1.4rem; max-width: calc(100vw - 6.5rem); white-space: nowrap; }
  .dock a { background: var(--ground); color: var(--ink); border-radius: 999px; padding: 0.5em 1.1em; text-decoration: none; font-weight: 500; }
  .dock a:focus-visible { outline-color: var(--ground); }
  @media (max-width: 36rem) { .dock { left: auto; right: max(16px, env(safe-area-inset-right, 0px)); transform: none; gap: 0.7rem; padding-left: 1.1rem; } .dock .price { display: none; } }

  /* Prototype panel and the stand-in payment page: not part of the site, so they look like neither face. */
  .dev-btn { position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); appearance: none; border: 1.5px solid #1c1c1c; background: #f1f1ee; color: #1c1c1c; border-radius: 0.6rem; padding: 0.5rem 0.7rem; font: 500 0.8rem system-ui, sans-serif; cursor: pointer; }
  .dev { position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(4rem + env(safe-area-inset-bottom, 0px)); width: min(22rem, calc(100vw - 24px)); max-height: 72vh; overflow: auto; background: #f1f1ee; color: #1c1c1c; border: 1.5px solid #1c1c1c; border-radius: 0.8rem; padding: 1rem; font: 0.85rem/1.45 system-ui, sans-serif; display: flex; flex-direction: column; gap: 0.9rem; }
  .dev h2 { font: 600 0.9rem system-ui, sans-serif; }
  .dev .grp { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
  .dev .grp > span { flex: 1 0 100%; color: #555; }
  .dev button { appearance: none; border: 1.5px solid #1c1c1c; background: #fff; color: #1c1c1c; border-radius: 0.5rem; padding: 0.35rem 0.6rem; font: inherit; cursor: pointer; }
  .dev button[aria-pressed="true"] { background: #1c1c1c; color: #fff; }
  .dev button:disabled { opacity: 0.4; cursor: default; }
  .dev ul { padding-left: 1.1em; list-style: disc; display: flex; flex-direction: column; gap: 0.3rem; color: #333; }
  .dev :focus-visible, .dev-btn:focus-visible, .payx :focus-visible { outline: 3px solid #1c1c1c; outline-offset: 2px; }
  .payx { position: fixed; inset: 0; z-index: 50; background: #ececea; color: #1c1c1c; font: 1rem/1.5 system-ui, sans-serif; display: grid; place-items: center; padding: 1.5rem; }
  .payx.travel { transition: clip-path 800ms cubic-bezier(0.45, 0, 0.2, 1); }
  .payx > div { max-width: 30rem; display: flex; flex-direction: column; gap: 1rem; }
  .payx h2 { font: 600 1.3rem system-ui, sans-serif; }
  .payx button { appearance: none; border: 1.5px solid #1c1c1c; background: #fff; color: #1c1c1c; border-radius: 0.5rem; padding: 0.7rem 1rem; font: inherit; cursor: pointer; text-align: left; }

  /* ---- Version 2: bands for sections, the weekend as a line, the tide between pages. */
  .pg.travel { transition: opacity 200ms linear; }
  .band { background: var(--ground); color: var(--ink); }
  .band.raised { background: var(--raised); }
  .band.eve { --ground: #321329; --raised: #4B283B; --ink: #F8C9A8; --soft: #C99D8A; --rule: rgba(248, 201, 168, 0.24); }
  .band > .wrap { display: flex; flex-direction: column; gap: 2.4rem; padding-block: clamp(3rem, 7vw, 5.5rem); }
  .band h2 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1; letter-spacing: -0.01em; }
  .band .back { margin-bottom: -1rem; }
  .lede { font-size: var(--s3); line-height: 1.45; max-width: 46ch; }
  .tide { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 15; pointer-events: none; display: none; color: var(--ink); overflow: visible; }
  .dayhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.8rem; }
  .dayname { font-weight: 300; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; }
  .dayrow { max-width: 100%; }
  .wavehost { display: block; }
  .wave { display: block; width: 100%; overflow: visible; }
  .wave .link { fill: none; stroke: currentColor; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1500ms cubic-bezier(0.45, 0, 0.2, 1), opacity 400ms; }
  .wave.joined .link { stroke-dashoffset: 0; opacity: 1; }
  .sess { display: grid; margin-top: 0.9rem; }
  .sess li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.1rem; padding: 0 0.5rem; min-width: 0; transition: opacity 500ms; }
  .sess .time { color: var(--soft); font-variant-numeric: tabular-nums; }
  .sess b { font-weight: 500; line-height: 1.25; text-wrap: balance; }
  .sess .rest { color: var(--soft); font-size: var(--s1); }
  .sess li.pause { color: var(--soft); }
  .sess li.pause.tiny > * { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sess li.past { opacity: 0.5; }
  .sess li.now b::before { content: "Nå"; display: inline-block; background: var(--ink); color: var(--ground); border-radius: 99px; padding: 0 0.6em; margin-right: 0.5em; font-size: var(--s1); }
  @media (max-width: 56rem) {
    .dayrow { width: 100% !important; }
    .sess { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.3rem; }
    .sess li { display: grid; grid-template-columns: 6.8rem 1fr; column-gap: 1rem; text-align: left; align-items: start; padding: 0; }
    .sess li > * { grid-column: 2; }
    .sess li > .time { grid-column: 1; grid-row: 1 / span 3; }
    .sess li.pause.tiny > * { position: static; width: auto; height: auto; clip-path: none; }
  }
  .apart { border: 1.5px dashed var(--rule); border-radius: 1.5rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; max-width: 44rem; }
  .nowline { min-height: 1.5em; font-size: var(--s3); }
  .weekline { --k: 0.6; display: flex; flex-wrap: wrap; gap: 0.8rem clamp(0.8rem, 2.4vw, 2rem); align-items: flex-end; text-decoration: none; color: var(--ink); }
  .weekline .wl { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
  .weekline .cap { font-size: var(--s1); color: var(--soft); white-space: nowrap; }
  @media (max-width: 46rem) { .weekline { --k: 0.42; } }
  .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 3rem; }
  .two > div { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 2rem; align-items: start; }
  .card { display: flex; flex-direction: column; gap: 1rem; }
  .card .pic { aspect-ratio: 4 / 5; }
  .card h3 { font-weight: 300; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; }
  details summary { cursor: pointer; text-decoration: underline; text-underline-offset: 0.22em; list-style: none; }
  details summary::-webkit-details-marker { display: none; }
  details[open] summary { margin-bottom: 0.9rem; }
  details p + p { margin-top: 0.9rem; }
  .bigprice { font-weight: 300; font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1; }
  .dev input[type="range"] { width: 100%; }
  .pg[data-page="forsiden"] .band:first-child > .wrap, .pg.focus > .passed + .band > .wrap { padding-top: 1.25rem; }
  .lead .pic { max-height: 56vh; }

  /* ---- Version 3: two lines dance on the first screen. */
  .band.stage { position: relative; overflow: hidden; }
  .band.stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .band.stage > .wrap { position: relative; }

  /* ---- Version 4: quiet. A plain timetable, a calendar, small pictures, colours to try, one wave. */
  body { background: var(--sky, var(--ground)); background-attachment: fixed; }
  .pg, .band { background: transparent; }
  .band.raised { background: var(--raised); }
  .top { background: var(--topbg, var(--ground)); }
  .pic { position: relative; }
  .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .row .pic { height: 4.5rem; }
  .lead .pic { max-height: 52vh; max-width: 24rem; }
  .pill, a.row .chev, .go::after, .cd, .gal .pic { transition: transform 180ms; }
  @media (hover: hover) {
    .pill:hover, a.cd:hover, .gal:hover .pic { transform: translateY(-3px); }
    a.row:hover .chev, .go:hover::after { transform: translateX(6px); }
    a.row:hover b, .top nav a:hover { text-decoration: underline; text-underline-offset: 0.22em; }
  }
  .pill:active, a.cd:active, .gal:active .pic { transform: scale(0.96); }
  .tt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; gap: 1.5rem; align-items: start; }
  @media (max-width: 52rem) { .tt { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
  .tcard { background: var(--ground); color: var(--ink); border-radius: 1.5rem; padding: 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
  .tcard.eve { --ground: var(--eve-g); --ink: var(--eve-i); --soft: var(--eve-s); --rule: var(--eve-r); }
  .thead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 1rem; }
  .thead h3 { font-weight: 300; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; }
  .trows { display: flex; flex-direction: column; }
  .trow { display: grid; grid-template-columns: 7.4rem 1fr; gap: 1rem; padding: 0.75rem 0; border-top: 1.5px solid var(--rule); transition: opacity 400ms; }
  .trow .time { font-variant-numeric: tabular-nums; color: var(--soft); }
  .trow .what { display: flex; flex-direction: column; min-width: 0; }
  .trow b { font-weight: 500; line-height: 1.3; }
  .trow .rest { color: var(--soft); font-size: var(--s1); }
  .trow.pause b { font-weight: 400; color: var(--soft); }
  .trow.past { opacity: 0.5; }
  .trow.now b::before { content: "Nå"; display: inline-block; background: var(--ink); color: var(--ground); border-radius: 99px; padding: 0 0.6em; margin-right: 0.5em; font-size: var(--s1); }
  .calwrap { display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  @media (max-width: 52rem) { .calwrap { grid-template-columns: 1fr; } }
  .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
  .cal .wd { font-size: var(--s1); color: var(--soft); text-align: center; padding-bottom: 0.2rem; }
  .cd { height: 3.4rem; border-radius: 0.9rem; display: flex; flex-direction: column; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--ink); line-height: 1.1; }
  .cd small { font-size: 0.7rem; color: var(--soft); }
  .cd.past { color: var(--soft); opacity: 0.55; }
  .cd.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .cd.on { background: var(--ink); color: var(--ground); font-weight: 500; opacity: 1; }
  .cd.on small { color: inherit; }
  .cd.sep { box-shadow: inset 0 0 0 1.5px var(--soft); }
  .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); gap: 2.5rem; }
  .card { display: grid; grid-template-columns: 11rem 1fr; gap: 1.4rem; align-items: start; }
  .card .gal { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; display: flex; flex-direction: column; gap: 0.4rem; color: var(--soft); font: inherit; font-size: var(--s1); text-align: left; }
  .card .pic { width: 11rem; height: 14rem; aspect-ratio: auto; }
  .card .pic img { transition: opacity 220ms; }
  .card .txt { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
  .card h3 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
  @media (max-width: 30rem) { .card { grid-template-columns: 7.5rem 1fr; gap: 1rem; } .card .pic { width: 7.5rem; height: 9.6rem; } }
  .dev .sw { display: inline-block; width: 0.9em; height: 0.9em; border-radius: 50%; margin-right: 0.35em; vertical-align: -0.1em; border: 1px solid #1c1c1c; }

  /* ---- Version 5: circle and arch, the two shapes the name is drawn with. No boxes with rounded corners. */
  .top nav a { text-transform: lowercase; font-weight: 300; font-size: var(--s3); }
  .pill { background: none; color: var(--ink); padding: 0; gap: 0.9rem; font-size: var(--s3); font-weight: 400; min-height: 0; border-radius: 0; text-align: left; }
  .pill::before { content: "\2192"; display: grid; place-items: center; flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--ink); color: var(--ground); font-size: 1.5rem; font-weight: 300; transition: transform 200ms; }
  @media (hover: hover) { .pill:hover { transform: none; } .pill:hover::before { transform: translateX(6px); } }
  .pill:active { transform: none; }
  .pill:active::before { transform: scale(0.9); }
  .sum .pill { align-self: flex-start; }
  .pic { border-radius: 0; }
  .lead .pic, .arch { border-radius: 999px 999px 0 0; }
  .lead .pic { aspect-ratio: 3 / 4; max-width: 21rem; max-height: none; }
  .row .pic, .chip .pic { border-radius: 50%; }
  .ticket-row { background: none; padding: 0; border-radius: 0; }
  .sum { border-radius: 0; }
  .tk { border-radius: 999px; padding: 2rem 3.2rem; }
  .tk .code { border-radius: 50%; }
  @media (max-width: 34rem) { .tk { border-radius: 3rem; padding: 2rem; } }
  @media (max-width: 46rem) { .lead .pic { order: -1; width: 62%; max-width: 15rem; justify-self: start; } }
  .back { margin: 0; text-decoration: none; }
  .days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: start; }
  @media (max-width: 52rem) { .days { grid-template-columns: 1fr; gap: 3.5rem; } }
  .dcol { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
  .dhead { position: sticky; top: calc(var(--head) + env(safe-area-inset-top, 0px)); z-index: 2; background: var(--raised); display: flex; align-items: baseline; gap: 1rem; padding: 0.4rem 0; }
  .dnum { font-weight: 300; font-size: clamp(3.4rem, 9vw, 5.5rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
  .dname { font-weight: 300; font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
  .dpart { display: flex; flex-direction: column; }
  .dpart.eve { --ground: var(--eve-g); --ink: var(--eve-i); --soft: var(--eve-s); --rule: var(--eve-r); background: var(--ground); color: var(--ink); padding: 1.4rem 1.4rem 0.4rem; }
  .dplace { color: var(--soft); padding-bottom: 0.6rem; }
  .trow { display: block; padding: 0; }
  .tline { display: grid; grid-template-columns: 7.4rem 1fr auto; gap: 1rem; align-items: start; width: 100%; padding: 0.85rem 0; background: none; border: 0; text-align: left; color: inherit; }
  button.tline { cursor: pointer; }
  .plus { display: block; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; position: relative; }
  .plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.8rem; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 200ms; }
  .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
  [aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
  .tmore { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; padding: 0 0 1.2rem 8.4rem; }
  @media (max-width: 34rem) { .tmore { padding-left: 0; } .tline { grid-template-columns: 6.6rem 1fr auto; } }
  .chip { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; padding: 0.2rem 0; }
  .chip .pic { width: 2.6rem; height: 2.6rem; flex: none; }
  .chip span:last-child { text-decoration: underline; text-underline-offset: 0.22em; }
  .fri { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.6rem; align-items: start; }
  .fri .dnum { color: var(--soft); }
  .fri .f { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; padding-top: 0.5rem; }
  .fri h3 { font-weight: 300; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; }
  .tag { display: inline-block; box-shadow: inset 0 0 0 1.5px var(--soft); border-radius: 99px; padding: 0.1em 0.8em; font-size: var(--s1); color: var(--soft); }
  .fold { display: inline-flex; align-items: center; gap: 0.6rem; background: none; border: 0; padding: 0.3rem 0; color: inherit; cursor: pointer; }
  .more { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
  .teachers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2rem 3rem; }
  .teach { display: grid; grid-template-columns: 7rem 1fr auto; gap: 1.4rem; align-items: center; text-decoration: none; }
  .teach .pic { width: 7rem; height: 9.3rem; }
  .teach b { font-weight: 300; font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.05; display: block; }
  .teach .chev { font-size: var(--s3); transition: transform 180ms; }
  @media (hover: hover) { .teach:hover .chev { transform: translateX(6px); } }
  .strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.6rem; scroll-snap-type: x proximity; }
  .strip .pic { flex: none; width: min(60vw, 15rem); height: min(80vw, 20rem); scroll-snap-align: start; }
  .feature { display: grid; grid-template-columns: minmax(0, 16rem) 1fr; gap: 2.5rem; align-items: center; text-decoration: none; }
  .feature .pic { aspect-ratio: 3 / 4; }
  .feature .f { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
  .feature .big { font-weight: 300; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1; }
  @media (max-width: 40rem) { .feature { grid-template-columns: 1fr; } .feature .pic { max-width: 12rem; } }
  .mrow { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: 0.6rem 2rem; align-items: baseline; padding: 1.4rem 0; border-top: 1.5px solid var(--rule); }
  .mrow .m { font-weight: 300; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1; color: var(--soft); }
  .mrow .e { display: flex; flex-direction: column; gap: 0.15rem; }
  .mrow .e b { font-weight: 400; font-size: var(--s3); line-height: 1.2; }
  @media (max-width: 34rem) { .mrow { grid-template-columns: 1fr; } }
  .say { font-weight: 300; font-size: clamp(1.9rem, 5.2vw, 3.6rem); line-height: 1.12; max-width: 22ch; text-wrap: balance; }
  .val { border-top: 1.5px solid var(--rule); }
  .val > button { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; background: none; border: 0; padding: 1rem 0; color: inherit; cursor: pointer; text-align: left; font-weight: 300; font-size: clamp(2rem, 6vw, 3.8rem); line-height: 1; }
  .val > div { padding: 0 0 1.5rem; max-width: 46ch; font-size: var(--s3); line-height: 1.45; }
  .who2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 2rem; }
  .who2 b { font-weight: 300; font-size: clamp(1.8rem, 4.5vw, 2.8rem); display: block; line-height: 1.05; }
  .tline .time { white-space: nowrap; }
  .tline { grid-template-columns: minmax(6.9rem, auto) 1fr auto; }
  @media (max-width: 34rem) { .tline { grid-template-columns: auto 1fr auto; gap: 0.8rem; } .tline .time { font-size: var(--s1); padding-top: 0.15em; } }

  /* ---- Version 6: the calendar answers in place; hover is set by script so a mouse on a touch tablet gets it too. */
  button.cd { appearance: none; border: 0; background: none; font: inherit; cursor: pointer; width: 100%; padding: 0; }
  button.cd.on { background: var(--ink); }
  .cd.today { box-shadow: none; }
  .cd.today::after { content: ""; width: 0.36rem; height: 0.36rem; border-radius: 50%; background: currentColor; margin-top: 0.18rem; }
  .cd.sep { box-shadow: inset 0 0 0 1.5px var(--soft); }
  .cd[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--ink); opacity: 1; }
  .cd.on[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--raised), 0 0 0 5.5px var(--ink); }
  .cd.hov { box-shadow: inset 0 0 0 1.5px var(--ink); opacity: 1; }
  .cd.on.hov { transform: translateY(-3px); }
  #cal-day { min-height: 17rem; display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; }
  #cal-day h3 { font-weight: 300; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.1; margin-bottom: 0.5rem; }
  #cal-day b { font-weight: 500; font-size: var(--s3); line-height: 1.2; }
  #cal-day .pill { margin-top: 0.9rem; }
  .pill.hov::before, .feature.hov .pill::before { transform: translateX(7px); }
  a.row.hov .chev, .teach.hov .chev, .go.hov::after { transform: translateX(7px); }
  .top nav a.hov, .teach.hov b, .chip.hov span:last-child, button.tline.hov b, .val > button.hov, .fold.hov, .feature.hov .big, .back.hov { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
  .hov > .plus { transform: scale(1.15); }
  .plus { transition: transform 180ms; }
  @media (max-width: 52rem) { #cal-day { min-height: 21rem; } }
  /* The arch read as a door. Pictures are plain rectangles; only the small round ones keep a shape. */
  .lead .pic, .arch { border-radius: 0; }

  /* ---- Version 8: the floor on the first screen, a closing band instead of a footer row. */
  .floor { min-height: 46vh; align-self: stretch; }
  @media (max-width: 46rem) { .floor { min-height: 40vh; } }
  .two.one { grid-template-columns: minmax(0, 46rem); }
  main { padding-bottom: 0; }
  .foot2 { background: var(--eve-g); color: var(--eve-i); --ink: var(--eve-i); --soft: var(--eve-s); --ground: var(--eve-g); }
  .foot2 .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; padding-block: 4.5rem 7.5rem; align-items: start; }
  .foot2 .mark { width: min(100%, 22.6rem); color: var(--eve-i); }
  .foot2 a, .foot2 .mail { display: block; font-size: var(--s3); font-weight: 300; text-decoration: none; padding: 0.25rem 0; color: var(--eve-i); }
  .foot2 .mail { user-select: all; }
  .foot2 a.hov { text-decoration: underline; text-underline-offset: 0.2em; }
  @media (max-width: 46rem) { .foot2 .wrap { grid-template-columns: 1fr; gap: 1.6rem; } }

  /* ---- Version 9: the teacher and the place stand once, over the sessions they hold for. */
  .dplace { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.4rem; }
  .dplace .chip { color: var(--ink); }
  .trow .what a { align-self: flex-start; }

  /* ---- Version 10: the teachers are shown large, on the front page and on the event page. */
  .teachers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 2.5rem 3rem; }
  .teach { grid-template-columns: 13rem 1fr auto; gap: 1.8rem; }
  .teach .pic { width: 13rem; height: 17.3rem; }
  .teach b { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin-bottom: 0.3rem; }
  @media (max-width: 34rem) { .teach { grid-template-columns: 9rem 1fr auto; gap: 1.1rem; } .teach .pic { width: 9rem; height: 12rem; } }
  .band:not(.raised) #cal-day, .band:not(.raised) .cd.on[aria-pressed="true"] { --raised: var(--ground); }

  /* ---- Version 11: nothing changes in an instant. Folds grow, the calendar's ring travels, pages cross over, colours ease. */
  body, .band, .top, .dpart, .foot2, .dock, .cd, .sum, .tk, .pill::before, .payx { transition: background-color 600ms ease, color 600ms ease, transform 180ms; }
  .cal { position: relative; }
  .calring { position: absolute; left: 0; top: 0; border-radius: 1.1rem; box-shadow: inset 0 0 0 2.5px var(--ink); pointer-events: none; transition: transform 440ms cubic-bezier(0.3, 0.7, 0.2, 1), width 440ms cubic-bezier(0.3, 0.7, 0.2, 1), height 440ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .cd[aria-pressed="true"], .cd.on[aria-pressed="true"] { box-shadow: none; }
  .cd.sep[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--soft); }
  .fri .more { margin-top: -0.4rem; padding-top: 0.4rem; }
  @keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .msg:not(:empty) { animation: arrive 360ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  @media (prefers-reduced-motion: reduce) { .calring { transition: none; } .msg:not(:empty) { animation: none; } }

  /* ---- Version 12: a feed of film and pictures on the front page, a gallery, and the face follows the sun in Bergen. */
  .feed { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 0.7rem; margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); }
  .fcard { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; flex: none; scroll-snap-align: start; color: inherit; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 0.4rem; }
  .fcard .pic { height: clamp(17rem, 46vh, 27rem); aspect-ratio: 9 / 16; overflow: hidden; display: block; }
  .fcard.wide .pic { aspect-ratio: 4 / 3; }
  .fcard .pic img, .fcard .pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 16s ease-in-out infinite alternate; }
  .fcard:nth-child(even) .pic img { animation-delay: -7s; animation-duration: 19s; }
  .fcard.hov .pic img { animation-play-state: paused; }
  @keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.13) translateY(-2%); } }
  @media (prefers-reduced-motion: reduce) { .fcard .pic img, .fcard .pic video { animation: none; } }
  .ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 10rem), 1fr)); gap: 0.7rem; }
  .gthumb { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; display: block; }
  .gthumb .pic { display: block; aspect-ratio: 1; overflow: hidden; }
  .gthumb .pic img { transition: transform 500ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .gthumb.hov .pic img { transform: scale(1.06); }
  .lb { position: fixed; inset: 0; z-index: 70; }
  .lb-bg { position: absolute; inset: 0; background: var(--eve-g); opacity: 0.94; }
  .lb img { position: fixed; object-fit: cover; }
  .lb button { position: fixed; z-index: 2; appearance: none; border: 0; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--eve-i); color: var(--eve-g); font: 300 1.5rem var(--face); cursor: pointer; display: grid; place-items: center; }
  .lb-x { top: calc(1rem + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
  .lb-p { left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); }
  .lb-n { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); }
  .lb button.hov { transform: scale(1.08); }
  .lb button { transition: transform 180ms; }
  .ico { width: 1.5rem; height: 1.5rem; vertical-align: -0.32rem; margin-right: 0.6rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .who2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 19rem)); gap: 2.5rem; }
  .who2 .pic { display: block; aspect-ratio: 3 / 4; margin-bottom: 1.1rem; background: #fff; }
  .who2 .pic img { object-position: 50% 12%; }

  /* ---- Version 13: the event's guest instructors stand inside the event, small, never as the school's own staff. */
  .guests { display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; }
  .guests .chip .pic { width: 3.4rem; height: 3.4rem; }
  .lead .guests .chip .pic { border-radius: 50%; aspect-ratio: 1; width: 3.4rem; height: 3.4rem; max-width: none; order: 0; justify-self: auto; }
  /* The cut-out portrait stands on the theme's own day colour, not on white. */
  .who2 .pic.softbg { background: var(--photo, #F8C9A8); }
  .who2 .pic.softbg img { mix-blend-mode: multiply; }
  /* The sky turns slowly. */
  body, .top { transition: background-color 2400ms ease, color 2400ms ease; }
  /* Both names on one line each. */
  .who2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 21rem)); }
  .who2 b { white-space: nowrap; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }


  /* ---- Version 17: one hover for the whole site, taken from the name: a line grows out and joins the thing to its
     words, as the letters join. And what is happening stands under the name on every page. */
  :root { --head: 6.4rem; }
  .top .wrap { flex-wrap: wrap; align-content: center; row-gap: 0.15rem; }
  .hnow { flex-basis: 100%; font-size: var(--s1); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: flex-start; flex: 0 1 auto; max-width: 100%; }
  .pill { position: relative; }
  .pill::after { content: ""; position: absolute; left: 3.5rem; right: 0; bottom: 0.5rem; height: 3px; border-radius: 3px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 460ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .pill.hov::after, .feature.hov .pill::after { transform: scaleX(1); }
  .pill.hov::before, .feature.hov .pill::before { transform: none; }
  a.row b, .teach b, .feature .big, .top nav a, .go, .back, .chip span:last-child, .foot2 a, .val > button, .fold, .hnow { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2.5px; transition: background-size 460ms cubic-bezier(0.3, 0.7, 0.2, 1); text-decoration: none; padding-bottom: 0.14em; }
  a.row.hov b, .teach.hov b, .feature.hov .big, .top nav a.hov, .top nav a[aria-current="page"], .go.hov, .back.hov, .chip.hov span:last-child, .foot2 a.hov, .val > button.hov, .fold.hov, .hnow.hov { background-size: 100% 2.5px; text-decoration: none; }
  .teach b { display: inline; }

  /* ---- Version 18: an event has a life. Far off it is quiet; the last week it gathers colour and pace; while it is
     on, the page is about now; afterwards it stays as a memory. */
  .live { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 1rem; }
  .live .big { font-weight: 300; font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
  .live .tag { align-self: flex-start; background: var(--ink); color: var(--ground); box-shadow: none; font-size: var(--s2); padding: 0.15em 0.9em; }
  .is-after [data-sell] { display: none; }
  .is-on .lead h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
  a.mrow { text-decoration: none; }
  a.mrow .e b { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2.5px; transition: background-size 460ms cubic-bezier(0.3, 0.7, 0.2, 1); padding-bottom: 0.14em; }
  a.mrow.hov .e b { background-size: 100% 2.5px; }
  .memory .pic { aspect-ratio: 4 / 5; max-width: 30rem; }
  .memory img, .is-after .pic img { filter: sepia(0.3) saturate(0.78) contrast(0.93) brightness(1.05); transition: filter 1200ms ease; }
  .pic img { transition: filter 1200ms ease; }

  /* Without words: the pictures are a little muted when the event is far off and at full strength when it is near. */
  .pic img { filter: saturate(calc(0.8 + 0.4 * var(--en, 0.5))) contrast(calc(0.96 + 0.08 * var(--en, 0.5))); }
  .memory img, .is-after .pic img { filter: sepia(0.3) saturate(0.78) contrast(0.93) brightness(1.05); }

  /* A memory's picture keeps more of its colour the more dancers were there. */
  .memory img { filter: sepia(calc(0.16 + 0.2 * var(--mem, 0.7))) saturate(calc(0.5 + 0.42 * var(--mem, 0.7))) contrast(0.93) brightness(1.05); }

  /* ---- Version 21. The header never shifts; nothing eases on the first paint; a timeline to move through the
     event's life with simulated figures; and the event page itself changes with the phase. */
  .top .wrap { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1.5rem; align-items: center; align-content: center; column-gap: 1rem; row-gap: 0.1rem; }
  .top .mark { grid-row: 1; grid-column: 1; }
  .top nav { grid-row: 1; grid-column: 2; justify-self: end; }
  .hnow { grid-row: 2; grid-column: 1 / -1; justify-self: start; max-width: 100%; height: 1.5rem; line-height: 1.5rem; flex: none; }
  :root:not(.ready) *, :root:not(.ready) *::before, :root:not(.ready) *::after { transition: none !important; }
  .pic { background: transparent; }
  .who2 .pic { background: transparent; }
  .who2 .pic.softbg { background: var(--photo, #F8C9A8); }
  .tl { position: fixed; left: 0; right: 0; bottom: 0; z-index: 39; background: #f1f1ee; color: #1c1c1c; border-top: 1.5px solid #1c1c1c; font: 0.8rem/1.35 system-ui, sans-serif; padding: 0.45rem max(12px, env(safe-area-inset-right, 0px)) calc(0.45rem + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: auto 1fr auto; gap: 0.25rem 0.7rem; align-items: center; }
  .tl button { appearance: none; border: 1.5px solid #1c1c1c; background: #fff; color: #1c1c1c; border-radius: 0.5rem; padding: 0.3rem 0.6rem; font: inherit; cursor: pointer; }
  .tl input { width: 100%; min-width: 0; }
  .tl .read { grid-column: 1 / -1; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tl :focus-visible { outline: 3px solid #1c1c1c; outline-offset: 2px; }
  .dev-btn { bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); }
  .dev { bottom: calc(8.6rem + env(safe-area-inset-bottom, 0px)); max-height: 60vh; }
  .dock { bottom: calc(5.8rem + env(safe-area-inset-bottom, 0px)); }
  .foot2 .wrap { padding-bottom: 12rem; }
  .count { display: flex; align-items: baseline; gap: 0.6rem; min-height: 1px; }
  .count .dnum { font-size: calc(2.6rem + 7.5rem * var(--en, 0)); line-height: 0.86; transition: font-size 900ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .count .dname { font-size: calc(1.4rem + 1.6rem * var(--en, 0)); transition: font-size 900ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .ph-near .lead .pic { max-width: calc(21rem + 8rem * var(--en, 0)); transition: max-width 900ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .pg.focus:not([hidden]) { display: flex; flex-direction: column; }
  .pg.focus > .passed { order: -2; }
  .pg.focus > .passed + .band { order: -1; }
  .ph-on [data-b="program"] { order: 1; } .ph-on [data-b="places"] { order: 2; } .ph-on [data-b="instr"] { order: 3; } .ph-on [data-b="pictures"] { order: 4; } .ph-on [data-b="tickets"] { order: 5; }
  .ph-after [data-b="pictures"] { order: 1; } .ph-after [data-b="instr"] { order: 2; } .ph-after [data-b="program"] { order: 3; } .ph-after [data-b="places"] { order: 4; }
  .ph-on .lead .pic { max-width: 11rem; }
  /* The line about what is on stands at the right, under the menu, away from the name. */
  .hnow { justify-self: end; text-align: right; max-width: 68%; }
  @media (max-width: 46rem) { .hnow { max-width: 55%; } .hnow .hn-name { display: none; } }

  /* ---- Version 22: the people, as a flock. One small mark for each dancer, moving together behind the page. */
  #flock { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }

  /* ---- Version 24: the swarm is everyone who has danced with Flow Dance Bergen, one particle each. */
  .tl output { font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
  .dev-btn { bottom: calc(7.6rem + env(safe-area-inset-bottom, 0px)); }
  .dev { bottom: calc(10.6rem + env(safe-area-inset-bottom, 0px)); max-height: 55vh; }
  .dock { bottom: calc(7.8rem + env(safe-area-inset-bottom, 0px)); }
  .foot2 .wrap { padding-bottom: 14rem; }

  /* ---- Version 25: three clearly different event pages. Upcoming sells; ongoing is about now and where; past is
     pictures first, then what the programme was. */
  .live { background: var(--ink); color: var(--ground); padding: clamp(1.4rem, 4vw, 2.4rem); gap: 0.6rem; align-items: flex-start; }
  .live .soft { color: inherit; opacity: 0.78; }
  .live a { color: inherit; }
  .live .next { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1.5px solid currentColor; align-self: stretch; opacity: 0.9; }
  [data-b="pictures"]:has(.ggrid:empty) { display: none; }
  .ph-on .count, .ph-on .lead .pic, .ph-on .lead ~ .lede, .ph-on .lead ~ .intro { display: none; }
  .ph-on .lead { grid-template-columns: 1fr; }
  .ph-on [data-b="tickets"] { order: 9; }
  .ph-on [data-b="tickets"] h2 { font-size: var(--s4); }
  .ph-on [data-b="tickets"] .bigprice { font-size: var(--s3); }
  .ph-after .lead .pic, .ph-after .lead ~ .lede, .ph-after .lead ~ .intro, .ph-after .fri { display: none; }
  .ph-after .lead { grid-template-columns: 1fr; }
  .ph-after .ggrid { grid-template-columns: repeat(auto-fill, minmax(min(46%, 15rem), 1fr)); gap: 1rem; }
  .ph-after .gthumb .pic { aspect-ratio: 4 / 5; }
  .days.sun-first .dcol:nth-child(2) { order: -1; }
  .ph-after [data-b="program"] { order: 2; } .ph-after [data-b="instr"] { order: 3; }

  /* The lighter bands let the flock show through, so it is never hidden where it rests. */
  .band.raised { background: color-mix(in srgb, var(--raised) 58%, transparent); }

  /* The time to the event stays one calm size; it no longer grows as the event nears. */
  .count .dnum { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; transition: none; }
  .count .dname { font-size: var(--s3); transition: none; }
  .count { gap: 0.45rem; }

  /* ---- Version 29: while an event is on, its own name still comes first; what is on now stands under it. */
  .ph-on .lead { order: 1; }
  .ph-on .live { order: 2; }
  .is-on .lead h1 { font-size: clamp(2.5rem, 7.4vw, 5.2rem); }

  /* ---- Version 31: the header is part of the page, with no bar of its own, so the grid runs unbroken behind it. */
  .top { position: static; background: transparent; }
  .dhead { top: env(safe-area-inset-top, 0px); }
  .sum { top: calc(1rem + env(safe-area-inset-top, 0px)); }

  /* ---- Version 35: the event's picture stays while the event is on, on the front page and on the event page. */
  .ph-on .lead .pic { display: block; max-width: 21rem; }
  @media (min-width: 46.01rem) { .ph-on .lead { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
  .count .dname:first-child { margin-right: -0.1rem; }

  /* The closing band carries the grid too. */
  .foot2 { position: relative; overflow: hidden; }
  .foot2 > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
  .foot2 > .wrap { position: relative; }

  /* Someone joining flies above everything; a picture's dots lie over the picture until it has closed. */
  #joiners { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; display: block; }
  .pic > canvas.grain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

  /* Your own dot, in your own colour, lies in the grid with the others. */
  #flock-mine { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }


  /* ---- v41 */
  /* What is next stands at the top of the front page, not in the corner. */
  .hnow { display: none; }
  [data-page="forsiden"].ph-on .count { display: flex; }
  /* The calendar: one mark for each meaning. Our event is filled, a separate event is washed, the day chosen has
     the ring, and the pointer leaves a soft wash. Nothing lifts, so the ring always sits on its day. */
  .cd, button.cd { transition: background-color 380ms ease, color 600ms ease, opacity 380ms ease, box-shadow 380ms ease; }
  .cd.hov { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 42%, transparent); opacity: 1; }
  .cd.hov[aria-pressed="true"] { box-shadow: none; }
  .cd.sep, .cd.sep[aria-pressed="true"] { box-shadow: none; background: color-mix(in srgb, var(--ink) 17%, transparent); }
  .cd.sep.hov { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 42%, transparent); }
  .cd.on.hov, button.cd.on.hov { transform: none; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4.5px color-mix(in srgb, var(--raised) 22%, var(--ink)); }
  .cd.hov[aria-pressed="true"], .cd.on.hov[aria-pressed="true"], .cd.sep.hov[aria-pressed="true"] { box-shadow: none; }
  .calring { border-radius: 0.9rem; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4.5px var(--raised); }
  .band:not(.raised) .calring { --raised: var(--ground); }
  .cd:focus-visible { outline-offset: -3px; border-radius: 0.9rem; }
  /* Pictures belong to the page: its ground colours them a little, and its grid runs on across them. */
  .pic > canvas.grain { z-index: 1; }
  .pic.gr::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--ground); mix-blend-mode: soft-light; opacity: 0; transition: opacity 1200ms ease; }
  .pic.gr.in::before { opacity: 0.42; }
  .pic.gr::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background-image: radial-gradient(circle, var(--ground) 0, var(--ground) 0.85px, transparent 1.45px); background-size: var(--gs, 10px) var(--gs, 10px); background-position: var(--gx, 0px) var(--gy, 0px); opacity: 0; transition: opacity 1200ms ease; }
  .pic.gr.in::after { opacity: 0.26; }
  /* The line under a button is drawn by the engine, so that a wave can run through it. */
  .pill.wavy::after { display: none; }
  .pill > svg.wv { position: absolute; left: 3.5rem; bottom: calc(0.5rem - 6.5px); width: calc(100% - 3.5rem); height: 16px; overflow: visible; pointer-events: none; }
  .pill > svg.wv path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

  /* The page never moves sideways: nothing may make it wider than the screen, and a finger can only move it up
     and down. The rows of pictures that are meant to be swiped keep their own sideways movement. */
  html, body { overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
  @supports not (overflow: clip) { html, body { overflow-x: hidden; } }
  html { touch-action: pan-y pinch-zoom; }
  .strip, .feed { touch-action: pan-x pan-y pinch-zoom; overscroll-behavior-x: contain; }


  /* The arrow in a button's circle is alive: when the pointer comes, it swoops out to the right and a new one swoops
     in from the left, and the circle lifts a little; a press squeezes the circle and the arrow darts through. */
  .pill::before { overflow: hidden; color: transparent; text-shadow: 0 0 0 var(--ground), -3rem -0.9rem 0 var(--ground); transition: background-color 600ms ease, transform 320ms cubic-bezier(0.3, 0.7, 0.2, 1), text-shadow 320ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .pill.hov::before, .feature.hov .pill::before { transform: scale(1.07); text-shadow: 0.34rem 0 0 var(--ground), -3rem -0.9rem 0 var(--ground); }
  .pill:active::before { transform: scale(1.07); }
  .pill.prs::before, .feature .pill.prs::before { animation: arrow-dart 640ms cubic-bezier(0.35, 0, 0.2, 1); }
  @keyframes arrow-swoop {
    0% { text-shadow: 0 0 0 var(--ground), -3rem -0.9rem 0 var(--ground); }
    25% { text-shadow: 0.7rem 0.24rem 0 var(--ground), -2.3rem -0.3rem 0 var(--ground); }
    50% { text-shadow: 1.5rem 0.3rem 0 var(--ground), -1.5rem 0.3rem 0 var(--ground); }
    75% { text-shadow: 2.3rem -0.3rem 0 var(--ground), -0.7rem 0.24rem 0 var(--ground); }
    100% { text-shadow: 3rem -0.9rem 0 var(--ground), 0 0 0 var(--ground); }
  }
  @keyframes arrow-dart {
    0% { transform: scale(1.07); text-shadow: 0 0 0 var(--ground), -3rem -0.9rem 0 var(--ground); }
    22% { transform: scale(0.86); text-shadow: 0.9rem 0.2rem 0 var(--ground), -2.4rem -0.4rem 0 var(--ground); }
    50% { text-shadow: 3rem -0.9rem 0 var(--ground), -1.2rem 0.3rem 0 var(--ground); }
    62% { transform: scale(1.12); }
    100% { transform: scale(1); text-shadow: 3rem -0.9rem 0 var(--ground), 0 0 0 var(--ground); }
  }
  @media (prefers-reduced-motion: reduce) { .pill.hov::before, .feature.hov .pill::before, .pill.prs::before { animation: none; } }
  /* The menu's line is drawn by the engine too. */
  .top nav a { position: relative; }
  .top nav a.wavy { background-image: none; }
  .top nav a > svg.wv { position: absolute; left: 0; bottom: -7px; width: 100%; height: 16px; overflow: visible; pointer-events: none; }
  .top nav a > svg.wv path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  /* A page has one title. */
  .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }


  /* A picture has no plate behind it: between its dots one sees the page. While its pieces are apart, the tint and
     the grid lie in the pieces themselves. */
  .pic.gr { background: transparent; }
  .pic.gr.sep::before { opacity: 0; transition: none; }


  /* The tint lies in the picture's own dots now, so nothing is laid over a picture but the grid's fine dots. */
  .pic.gr::before { display: none; }


  /* Nothing is laid over a picture any more: its dots are its own. */
  .pic.gr::after { display: none; }
  /* One line under a card, the button's; the name above it does not draw a second. */
  .feature.hov .big { background-size: 0 2.5px; }
  /* What one is interested in: a word with a dot of the grid before it. The pointer wakes the dot a little and draws
     the line; choosing it swells the dot, as the grid's dots swell where there is life. Nothing changes at once. */
  .choices { gap: 0.5rem 2.2rem; }
  .choices span { border: 0; border-radius: 0; padding: 0.35em 0 0.4em 1.75em; position: relative; color: var(--soft); background-color: transparent; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 1.75em 100%; background-size: 0 2px; transition: background-size 460ms cubic-bezier(0.3, 0.7, 0.2, 1), color 420ms ease; }
  .choices span::before { content: ""; position: absolute; left: 0.3em; top: 50%; width: 1em; height: 1em; margin-top: -0.5em; border-radius: 50%; background: var(--ink); transform: scale(0.2); transition: transform 460ms cubic-bezier(0.3, 1.5, 0.4, 1); }
  .choices label.hov span { color: var(--ink); background-size: calc(100% - 1.75em) 2px; }
  .choices label.hov span::before { transform: scale(0.42); }
  .choices input:checked + span { color: var(--ink); background-color: transparent; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 1.75em 100%; }
  .choices input:checked + span::before { transform: scale(1); }
  /* A field answers the pointer: its line grows firmer and its name clearer. */
  .field input, .field select { transition: box-shadow 340ms ease; }
  .field span { transition: transform 250ms, color 340ms ease; }
  .field.hov input, .field.hov select { box-shadow: 0 1.5px 0 var(--ink); }
  .field.hov span { color: var(--ink); }

  /* An instructor's name that breaks over two lines keeps one line under it, under the whole name; what they dance
     and where they come from stand on lines of their own below. */
  .teach b { display: inline-block; vertical-align: top; }
  .teach b ~ span { display: block; }
  .teach br { display: none; }


  /* Chosen: only the dot swells. The line belongs to the pointer. */
  .choices input:checked + span { background-size: 0 2px; }
  .choices label.hov input:checked + span { background-size: calc(100% - 1.75em) 2px; }
  /* The checkout says the price once, large, in the summary. What is sold out is struck through; the price that
     holds now stands firm in the list. */
  .tier.out span:first-child, .tier.out s { text-decoration: line-through; text-decoration-thickness: 1.5px; }
  .tier:not(.out) { font-weight: 500; }
  .sum .total { display: flex; flex-direction: column; gap: 0.1rem; margin: 0.4rem 0 0.6rem; }
  .sum .total .amount { font-weight: 300; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }


  /* Accepting the terms: a ring with a dot of the grid in it. The pointer wakes the dot, a tick swells it to fill
     the ring. It eases; nothing about it is the browser's own grey box. */
  .check { gap: 0.8rem; cursor: pointer; }
  .check input { appearance: none; -webkit-appearance: none; width: 1.5rem; height: 1.5rem; margin: 0; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; }
  .check input::before { content: ""; width: 0.86rem; height: 0.86rem; border-radius: 50%; background: var(--ink); transform: scale(0.14); transition: transform 460ms cubic-bezier(0.3, 1.5, 0.4, 1); }
  .check.hov input::before { transform: scale(0.4); }
  .check input:checked::before, .check.hov input:checked::before { transform: scale(1); }

  /* The name has air above it. The row under it that held "next up" is gone, so the name no longer sits pushed up. */
  .top .wrap { grid-template-rows: auto; padding-top: 1.6rem; }


  /* The line of a button belongs to its circle: it leaves the circle at its lowest point and runs out under the
     words, so circle and line are one stroke. */
  .pill > svg.wv { left: 1.75rem; bottom: -8px; width: calc(100% - 1.75rem); }
  /* What one is interested in must look like something to press: a ring, as on the terms, with the grid's dot in it. */
  .choices { gap: 0.6rem 2.2rem; }
  .choices span { color: var(--ink); padding-left: 2.05em; background-position: 2.05em 100%; }
  .choices span::before { left: 0; width: 1.3em; height: 1.3em; margin-top: -0.65em; box-sizing: border-box; background: transparent; border: 1.5px solid var(--ink); transform: none; transition: none; }
  .choices label.hov span::before, .choices input:checked + span::before { transform: none; }
  .choices span::after { content: ""; position: absolute; left: 0.25em; top: 50%; width: 0.8em; height: 0.8em; margin-top: -0.4em; border-radius: 50%; background: var(--ink); transform: scale(0.14); transition: transform 460ms cubic-bezier(0.3, 1.5, 0.4, 1); }
  .choices label.hov span::after { transform: scale(0.42); }
  .choices input:checked + span::after, .choices label.hov input:checked + span::after { transform: scale(1); }
  .choices label.hov span { background-size: calc(100% - 2.05em) 2px; }
  .choices input:checked + span { background-position: 2.05em 100%; }
  .choices label.hov input:checked + span { background-size: calc(100% - 2.05em) 2px; }
  /* The name in the footer draws no line: it already moves. Under the pointer it rises, because a press takes one up. */
  .foot2 a.mark, .foot2 a.mark.hov { background-image: none; padding-bottom: 0; }
  .foot2 .mark { transition: transform 700ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .foot2 .mark.hov { transform: translateY(-0.85rem); }


  /* A button is its circle. No line is drawn under it: under the pointer the circle lifts, the arrow leans forward
     and the words move a step after it; a press squeezes the circle and the arrow thrusts once. */
  .pill::after, .pill.wavy::after, .pill.hov::after, .feature.hov .pill::after { display: none; }
  .pill > svg.wv { display: none; }
  .pill { transition: gap 340ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .pill.hov, .feature.hov .pill { gap: 1.2rem; }
  .pill::before { text-shadow: 0 0 0 var(--ground); }
  .pill.hov::before, .feature.hov .pill::before { transform: scale(1.07); text-shadow: 0.3rem 0 0 var(--ground); }
  .pill.prs::before, .feature .pill.prs::before { animation: arrow-press 520ms cubic-bezier(0.35, 0, 0.2, 1); }
  @keyframes arrow-press {
    0% { transform: scale(1.07); text-shadow: 0.3rem 0 0 var(--ground); }
    30% { transform: scale(0.86); text-shadow: 0 0 0 var(--ground); }
    65% { transform: scale(1.1); text-shadow: 0.55rem 0 0 var(--ground); }
    100% { transform: scale(1); text-shadow: 0 0 0 var(--ground); }
  }


  /* A press on a button has no keyframes that could start with a jump: the circle eases into a squeeze and eases
     out of it. Nothing else appears. */
  .pill.prs::before, .feature .pill.prs::before, .pill.hov.prs::before, .feature.hov .pill.prs::before { animation: none; transform: scale(0.88); text-shadow: 0.42rem 0 0 var(--ground); }
  .pill:active::before { transform: scale(0.88); }
  .pill::before { transition: background-color 600ms ease, transform 260ms cubic-bezier(0.3, 0.7, 0.2, 1), text-shadow 260ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .pill { transition: gap 340ms cubic-bezier(0.3, 0.7, 0.2, 1), opacity 340ms ease; -webkit-tap-highlight-color: transparent; }
  a, button, label { -webkit-tap-highlight-color: transparent; }
  /* A field that gets the focus: its line grows firmer by easing, not by a jump. */
  .field input:focus-visible, .field select:focus-visible { border-bottom-width: 1.5px; padding-bottom: 0.45rem; box-shadow: 0 1.5px 0 var(--ink); }
  .field input:focus, .field select:focus { box-shadow: 0 1.5px 0 var(--ink); }

  .who2 .pic.softbg.gr { background: transparent; }


  /* Pictures and the name cannot be dragged or marked: a press on them is a press. */
  .pic, .pic img, .pic canvas, .mark, .lb img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

  /* A choice says what kind it is. Where several may be chosen (interests, the terms) it is a square box that
     takes a tick; where only one may be chosen (the role) it stays a ring with a dot. Both ease, both answer the
     pointer, and both are the real form controls underneath, so keyboard and screen reader work as usual. */
  .choices input[type="checkbox"] + span::before { border-radius: 0.24em; transition: background-color 320ms ease; }
  .choices input[type="checkbox"] + span::after { left: 0.45em; top: 50%; width: 0.36em; height: 0.68em; margin-top: -0.5em; box-sizing: content-box; border-radius: 0; background: transparent; border: solid color-mix(in srgb, var(--ink) 55%, transparent); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transform-origin: 60% 60%; transition: transform 380ms cubic-bezier(0.3, 1.4, 0.4, 1), border-color 320ms ease; }
  .choices label.hov input[type="checkbox"] + span::after { transform: rotate(45deg) scale(0.8); }
  .choices input[type="checkbox"]:checked + span::before { background: var(--ink); }
  .choices input[type="checkbox"]:checked + span::after, .choices label.hov input[type="checkbox"]:checked + span::after { transform: rotate(45deg) scale(1); border-color: var(--ground); }
  .check input { border-radius: 0.3rem; transition: background-color 320ms ease; }
  .check input::before { width: 0.42rem; height: 0.8rem; margin-top: -0.22rem; border-radius: 0; background: transparent; border: solid color-mix(in srgb, var(--ink) 55%, transparent); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transform-origin: 60% 60%; transition: transform 380ms cubic-bezier(0.3, 1.4, 0.4, 1), border-color 320ms ease; }
  .check.hov input::before { transform: rotate(45deg) scale(0.8); }
  .check input:checked { background: var(--ink); }
  .check input:checked::before, .check.hov input:checked::before { transform: rotate(45deg) scale(1); border-color: var(--ground); }
  .check input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }


  /* Three values, all open: side by side where there is room, one under the other on a narrow screen. */
  .vals3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
  .vals3 > div { border-top: 1.5px solid var(--rule); padding-top: 1.1rem; }
  .vals3 h3 { font-weight: 300; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.05; margin: 0 0 0.9rem; }
  .vals3 p { margin: 0; max-width: 34ch; }
  @media (max-width: 52rem) { .vals3 { grid-template-columns: 1fr; } }

  /* The pointer as a coral dot. The dot is placed by the engine with no easing, so it is never behind the hand;
     only its shape eases. A dark edge keeps it readable on the orange pictures. */
  html.dotcur, html.dotcur * { cursor: none !important; }
  html.dotcur input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), html.dotcur textarea { cursor: text !important; }
  html.dotcur select, html.dotcur .tl, html.dotcur .tl *, html.dotcur .dev, html.dotcur .dev *, html.dotcur .dev-btn, html.dotcur .payx, html.dotcur .payx * { cursor: auto !important; }
  #cur { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity 260ms ease; }
  #cur.on { opacity: 1; }
  #cur i { position: absolute; left: 0; top: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; box-sizing: border-box; border-radius: 50%; background: #E4572E; border: 1.5px solid #E4572E; box-shadow: 0 0 0 1.5px var(--ground); transition: width 240ms cubic-bezier(0.3, 0.7, 0.2, 1), height 240ms cubic-bezier(0.3, 0.7, 0.2, 1), margin 240ms cubic-bezier(0.3, 0.7, 0.2, 1), background-color 240ms ease, box-shadow 240ms ease; }
  #cur.ring i { width: 36px; height: 36px; margin: -18px 0 0 -18px; background: transparent; box-shadow: 0 0 0 0 transparent; }
  #cur.ring.down i, #cur.down i { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: #E4572E; }
  /* The scrollbar stays the real one, thin and in the page's own colour, with nothing behind it. */
  html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 40%, transparent) transparent; }
  @supports not (scrollbar-color: auto) {
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
  }


  /* v72. The pointer is an arrow again, as a pointer should be, drawn in the page's own peach and plum. It is the
     browser's own cursor with our picture on it, so it is never behind the hand and falls back to the system's
     arrow where a browser will not take it. Over something to press it becomes the swallow, beak first, dark with a light edge. */
  #cur { display: none; }
  body { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'28'%20height%3D'28'%20viewBox%3D'0%200%2028%2028'%3E%3Cpath%20d%3D'M4%203%20L4%2021.5%20L9.2%2016.8%20L12.7%2024.6%20L16%2023.1%20L12.5%2015.5%20L19.6%2015.5%20Z'%20fill%3D'%23F8C9A8'%20stroke%3D'%233A1830'%20stroke-width%3D'1.6'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E") 4 3, auto; }
  :is(a, button, summary, label, .cd, [role="button"], .choices input, .check input, .co-tk, .co-sel, .co-list li, select, :is(a, button, summary, label, .co-tk, .co-sel, .co-list li, [role="button"]) *):not(.tl *):not(.dev *):not(.payx *):not(.dev-btn) { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2732%27%20height%3D%2732%27%20viewBox%3D%27-26%208%20206%20206%27%3E%3Cg%20transform%3D%27translate%28200%200%29%20scale%28-1%201%29%20rotate%28-33%20100%20100%29%27%3E%3Cpath%20d%3D%27M72.0%202.0%20Q72.0%202.0%2074.5%202.5%20Q77.0%203.0%2083.0%206.0%20Q89.0%209.0%20121.0%2032.5%20Q153.0%2056.0%20158.5%2062.5%20Q164.0%2069.0%20164.5%2073.0%20Q165.0%2077.0%20174.0%2076.0%20Q183.0%2075.0%20187.0%2078.5%20Q191.0%2082.0%20192.5%2085.5%20Q194.0%2089.0%20197.0%2091.0%20Q200.0%2093.0%20200.0%2093.5%20Q200.0%2094.0%20197.0%2094.0%20Q194.0%2094.0%20187.0%2099.0%20Q180.0%20104.0%20183.0%20107.0%20Q186.0%20110.0%20187.5%20114.5%20Q189.0%20119.0%20190.0%20135.0%20Q191.0%20151.0%20190.5%20167.0%20Q190.0%20183.0%20187.5%20188.5%20Q185.0%20194.0%20183.5%20196.0%20Q182.0%20198.0%20180.0%20198.0%20Q178.0%20198.0%20178.0%20195.5%20Q178.0%20193.0%20176.0%20192.0%20Q174.0%20191.0%20173.0%20188.5%20Q172.0%20186.0%20170.5%20185.0%20Q169.0%20184.0%20168.0%20181.0%20Q167.0%20178.0%20165.5%20177.5%20Q164.0%20177.0%20163.0%20174.5%20Q162.0%20172.0%20157.5%20167.5%20Q153.0%20163.0%20147.5%20150.5%20Q142.0%20138.0%20139.0%20137.0%20Q136.0%20136.0%20135.5%20134.5%20Q135.0%20133.0%20133.0%20132.5%20Q131.0%20132.0%20127.0%20128.5%20Q123.0%20125.0%20109.5%20125.0%20Q96.0%20125.0%2090.0%20125.5%20Q84.0%20126.0%2060.0%20132.5%20Q36.0%20139.0%2022.0%20143.5%20Q8.0%20148.0%206.0%20148.0%20Q4.0%20148.0%204.0%20147.0%20Q4.0%20146.0%205.0%20145.0%20Q6.0%20144.0%2026.5%20137.5%20Q47.0%20131.0%2053.0%20128.0%20Q59.0%20125.0%2060.0%20123.5%20Q61.0%20122.0%2051.0%20122.5%20Q41.0%20123.0%2023.0%20128.0%20Q5.0%20133.0%202.5%20133.5%20Q0.0%20134.0%200.0%20132.5%20Q0.0%20131.0%201.0%20130.5%20Q2.0%20130.0%2025.0%20124.5%20Q48.0%20119.0%2066.0%20113.0%20Q84.0%20107.0%2096.0%20100.5%20Q108.0%2094.0%20105.0%2093.5%20Q102.0%2093.0%20102.0%2088.0%20Q102.0%2083.0%20103.5%2075.0%20Q105.0%2067.0%20104.5%2064.5%20Q104.0%2062.0%20101.5%2060.0%20Q99.0%2058.0%2099.0%2056.5%20Q99.0%2055.0%2097.0%2053.0%20Q95.0%2051.0%2092.0%2045.5%20Q89.0%2040.0%2087.5%2034.5%20Q86.0%2029.0%2083.5%2024.0%20Q81.0%2019.0%2081.0%2017.0%20Q81.0%2015.0%2076.5%2010.5%20Q72.0%206.0%2072.0%204.0%20Q72.0%202.0%2072.0%202.0Z%27%20fill%3D%27%233A1830%27%20stroke%3D%27%23F8C9A8%27%20stroke-width%3D%2710%27%20stroke-linejoin%3D%27round%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 7 5, pointer !important; }
  :is(.co-tk.off, .co-tk.off *, button:disabled, button:disabled *) { cursor: default !important; }
  .tl, .dev, .dev-btn, .payx { cursor: auto; }

  /* Content the platform has and the first drawings did not: practical information and questions. */
  .prac { display: grid; gap: 2.6rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: start; }
  .prac > div { display: grid; gap: 0.5rem; justify-items: start; }
  .prac p { margin: 0; }
  .faq { display: grid; gap: 1.1rem; justify-items: start; max-width: 46rem; }

  /* The school's organisation number, as today's footer has it. */
  .foot2 .org { display: block; padding-top: 0.9rem; font-size: var(--s2); font-weight: 300; color: var(--eve-s); }

  /* For people who use the keyboard or a screen reader: past the header in one step. It eases into view on focus. */
  .skip { position: absolute; left: 1rem; top: -5rem; z-index: 200; background: var(--ink); color: var(--ground); padding: 0.7rem 1.2rem; border-radius: 99px; font-size: var(--s2); text-decoration: none; transition: top 220ms ease; }
  .skip:focus { top: 1rem; }

  /* The menu on small screens. A name is never broken in two; the link to the other language keeps a full
     finger's width; and where three links cannot stand beside the logo, the language is reached from the footer. */
  .top nav a { white-space: nowrap; }
  .top nav #lang { padding-inline: 0.65rem; margin-inline: -0.65rem; }
  @media (max-width: 26rem) { .top nav { gap: 1.1rem; } .top nav #lang { display: none; } }
  @media (max-width: 21.5rem) { .top nav { gap: 0.8rem; } .top nav a { font-size: 1.3rem; } }
  .cd small { font-size: 0.75rem; }

  /* A programme row with more to say opens where it stands, so every row stays short at every width. */
  button.tline { font: inherit; }
  .tline > .plus { align-self: start; width: 1.7rem; height: 1.7rem; margin-top: -0.05rem; }
  .tmore .rest { font-size: 1rem; line-height: 1.55; max-width: 36rem; }
  .tmore .chip { margin-top: 0.4rem; }
  /* One day stands alone in a column of reading width, not as half of two. */
  .days.one { grid-template-columns: minmax(0, 46rem); }
  .trow.now b::before { content: var(--now-word, "Nå"); }

  /* A finger needs more room than these small links take. They look the same; the area that answers a touch is larger. */
  @media (pointer: coarse) {
    .back, .go, .fold, .pg a[target="_blank"] { position: relative; }
    .back::before, .go::before, .fold::before, .pg a[target="_blank"]::before { content: ""; position: absolute; inset: -0.55rem -0.6rem; }
  }

  /* The site's typeface: Urbanist, carried by the site itself (fonts/, SIL Open Font License), with its numbers
     drawn a little larger: beside Urbanist's wide letters its own numbers look small. */
  @font-face { font-family: "Urbanist"; src: url("fonts/urbanist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  @font-face { font-family: "Urbanist"; src: url("fonts/urbanist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: block; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
  @font-face { font-family: "Urbanist Numbers"; src: url("fonts/urbanist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: block; unicode-range: U+30-39; size-adjust: 109%; }
  :root { --face: "Urbanist Numbers", "Urbanist", "Century Gothic", "Avenir Next", system-ui, sans-serif; }

  /* Urbanist's letters are wider than the face the menu was first sized for; on the narrowest phones it steps down once more. */
  @media (max-width: 21.5rem) { .top nav { gap: 0.7rem; } .top nav a { font-size: 1.12rem; } }

  /* The other language is a small round mark of its own, not one more word in the menu. It fills on hover and
     focus and gives a little under a press; a finger gets a larger area than the mark itself. */
  .top nav #lang { display: inline-grid; place-items: center; flex: none; align-self: center; width: 2.25rem; height: 2.25rem; padding: 0; margin: 0 0 0 0.35rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; background-image: none; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; line-height: 1; transition: background-color 240ms ease, color 240ms ease, transform 180ms ease; }
  .top nav #lang.hov, .top nav #lang:focus-visible { background-color: var(--ink); color: var(--ground); text-decoration: none; background-image: none; }
  .top nav #lang:active { transform: scale(0.9); }
  .top nav #lang::before { content: ""; position: absolute; inset: -0.4rem; border-radius: 50%; }
  /* On phones the two menu words step down a little so the mark has room beside them. */
  @media (max-width: 28rem) { .top nav { gap: 0.8rem; } .top nav a:not(#lang) { font-size: 1.3rem; } .top nav #lang { width: 2rem; height: 2rem; margin-left: 0.1rem; font-size: 0.72rem; } }
  @media (max-width: 24rem) { .top nav { gap: 0.55rem; } .top nav a:not(#lang) { font-size: 1.15rem; } .top nav #lang { width: 1.85rem; height: 1.85rem; } }
  /* Below this width three things do not fit beside the logo; the language is then reached from the footer. */
  @media (max-width: 22.4rem) { .top nav #lang { display: none; } }
  @media (max-width: 21.5rem) { .top nav a:not(#lang) { font-size: 1.12rem; } }

  /* The e-mail address is one long word. On the narrowest phones the footer's links step down so it stays inside the screen. */
  .foot2 .wrap > * { min-width: 0; }
  @media (max-width: 22.4rem) { .foot2 a, .foot2 .mail { font-size: 1.25rem; } }

  /* The flock's surface lies in the page and is carried by the browser's own scrolling (see the script). Its frame
     spans the whole page and cuts the surface off at the page's ends, so it never makes the page longer. */
  body { position: relative; }
  #flock-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
  #flock { position: absolute; inset: 0 auto auto 0; width: 100%; height: auto; z-index: auto; will-change: transform; }

  /* On a phone the leading picture runs from edge to edge of the screen: held to part of the width it reads as a
     thumbnail there. Between a phone and a tablet it fills its column. */
  @media (max-width: 46rem) { .pg .lead > .pic { width: 100%; max-width: 26rem; } }
  @media (max-width: 30rem) {
    .pg .lead > .pic { width: auto; max-width: none; justify-self: stretch; margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); }
  }

  /* The instructors' brief (/brief/…): pickups stand out, three days side by side. */
  .brief .brief-days { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
  .brief .dhead { background: var(--raised); }
  .brief .tag.pick { background: var(--ink); color: var(--ground); box-shadow: none; margin-right: 0.3em; vertical-align: 0.1em; }
  .brief .trow.pickup b { font-weight: 600; }
  .brief .brief-nums { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
  .brief .brief-nums > div { display: flex; align-items: baseline; gap: 0.7rem; font-size: var(--s3); }
  .brief .brief-levels .time, .brief .brief-around .time { font-variant-numeric: tabular-nums; }
  .brief .brief-around .tline { grid-template-columns: 5.2rem minmax(0, 1fr) auto; }
  .brief .brief-prac { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 2rem 3rem; }
  .brief .brief-prac > div { display: flex; flex-direction: column; gap: 0.5rem; }
  .brief .place .pics.one { grid-template-columns: 1fr; }
  .brief .place .pics.one .pic { aspect-ratio: 16 / 10; }
  .brief h3 { font-size: var(--s3); font-weight: 500; }
  .brief .place .pics.one.wide .pic { aspect-ratio: 3 / 1; }
  .brief .brief-map { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .brief .brief-map img { display: block; width: 100%; height: auto; border-radius: 0.9rem; }
  .brief .brief-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
  .brief .brief-legend li { display: flex; align-items: center; gap: 0.8rem; }
  .brief .brief-legend .key { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--ground); font-weight: 600; font-size: var(--s1); }
  .brief .brief-legend .key.home { background: #8e2f5a; color: #fce4d4; }
  @media (max-width: 46rem) { .brief .brief-map { grid-template-columns: 1fr; } }
  .brief .brief-legend .key.walk { background: radial-gradient(circle, var(--ink) 0 2.5px, transparent 3px) 0 50% / 8px 8px repeat-x; border-radius: 0; height: 0.5rem; }
  .brief .place .pics.sanaa { grid-template-columns: 1fr; }
  .brief .place .pics.sanaa .pic:first-child { aspect-ratio: 3 / 1; }
  .brief .place .pics.sanaa .pic:last-child { aspect-ratio: 4 / 3; }
  .brief .place .pics.sanaa .pic:last-child img { object-position: 50% 30%; }
  .brief .brief-mapopen { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
  .brief .brief-mapopen:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 0.9rem; }
  .brief-viewer { position: fixed; inset: 0; z-index: 60; background: rgba(40, 16, 34, 0.96); overflow: hidden; touch-action: none; overscroll-behavior: contain; }
  .brief-viewer[hidden] { display: none; }
  .brief-viewer img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-select: none; cursor: grab; }
  .brief-viewer img:active { cursor: grabbing; }
  .brief-viewer .brief-ctl { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); display: flex; gap: 0.5rem; }
  .brief-viewer .brief-ctl button { width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: #fce4d4; color: #3a1830; font: 500 1.6rem/1 var(--face); cursor: pointer; display: grid; place-items: center; }
  .brief-viewer .brief-ctl button:focus-visible { outline: 3px solid #fce4d4; outline-offset: 3px; }
  /* The brief's venues: one row each, the same picture on the left, so no column runs long. */
  .brief .brief-places { display: flex; flex-direction: column; gap: 3rem; }
  .brief .brief-place { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .brief .brief-pics { display: grid; gap: 0.8rem; }
  .brief .brief-pics .pic { aspect-ratio: 4 / 3; border-radius: 0.9rem; }
  .brief .brief-pics .pic.strip { aspect-ratio: 3 / 1; }
  .brief .brief-ptext { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; max-width: 40rem; }
  @media (max-width: 46rem) { .brief .brief-place { grid-template-columns: 1fr; gap: 1.2rem; } }


  /* ---- Weekend release. */
  /* While it is on, a phone shows what is on now first: the picture waits until it is over. */
  @media (max-width: 46rem) { .ph-on .lead .pic { display: none; } }
  .ph-on [data-b="practical"], .ph-on [data-b="faq"] { order: 6; }
  .ph-after [data-b="practical"], .ph-after [data-b="faq"] { order: 6; }
  [data-page="forsiden"].ph-on .count { display: none; }
  .live .go { color: inherit; margin-top: 0.4rem; }

  /* An event that is over says so across the top of its page. */
  .passed { background: var(--ink); color: var(--ground); }
  .passed > .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1.2rem; padding-block: 1.1rem; }
  .passed-tag { font-weight: 500; font-size: var(--s3); line-height: 1.15; }
  .passed-when { opacity: 0.82; }
  .passed .go { margin-left: auto; color: inherit; }
  @media (max-width: 34rem) { .passed .go { margin-left: 0; flex-basis: 100%; } }
  [data-passed], [data-b="thanks"] { display: none; }
  .ph-after > [data-passed], .ph-after > [data-b="thanks"] { display: block; }
  .ph-after > [data-b="thanks"] { order: 8; }

  /* Tickets within reach on a phone: the top's button waits at the bottom of the screen. */
  .stick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 38; padding: 0.75rem max(16px, env(safe-area-inset-right, 0px)) calc(0.75rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--ground) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -1.5px 0 var(--rule); transform: translateY(115%); transition: transform 460ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .stick.on { transform: none; }
  .stick-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .stick-cost { font-size: var(--s2); line-height: 1.2; min-width: 0; }
  .stick .pill { flex: none; }
  @media (min-width: 46.01rem) { .stick { display: none; } }
  @media (prefers-reduced-motion: reduce) { .stick { transition: transform 1ms; } }

  /* "Les mer": the line runs under the words only, and the ring follows the button's own shape. */
  .fold, .fold.hov { background-image: none; padding-bottom: 0.3rem; }
  .fold .fl { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px; padding-bottom: 0.1em; transition: background-size 460ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .fold.hov .fl { background-size: 100% 2px; }
  .fold:focus-visible { outline-offset: 5px; border-radius: 999px; }
  .fold:active .plus { transform: scale(0.88); }

  /* The language is a round button wherever it stands, never a word like the menu's. */
  .top nav #lang > svg.wv { display: none; }
  .foot2 a.langchip { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; background-image: none; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; line-height: 1; transition: background-color 240ms ease, color 240ms ease, transform 180ms ease; }
  .foot2 a.langchip.hov, .foot2 a.langchip:focus-visible { background-color: var(--ink); color: var(--ground); background-image: none; }
  .foot2 a.langchip:focus-visible { outline-offset: 3px; border-radius: 50%; }
  .foot2 a.langchip:active { transform: scale(0.9); }

  /* A place without a picture keeps its room: its name, on the page's own grid. */
  .place .pics.one { grid-template-columns: 1fr; }
  .pic.none { display: flex; align-items: flex-end; box-sizing: border-box; padding: 1rem 1.2rem; overflow: hidden; background: radial-gradient(circle, color-mix(in srgb, var(--ink) 34%, transparent) 0 1.1px, transparent 1.5px) 0 0 / 12px 12px, var(--raised); box-shadow: inset 0 0 0 1.5px var(--rule); }
  .pic.none > span { font-weight: 300; font-size: clamp(1.5rem, 4.6vw, 2.3rem); line-height: 1.02; color: var(--ink); text-wrap: balance; }
  .place .pic.none { aspect-ratio: 10 / 3; }

  /* Earlier events, as cards: picture, name, and the faces of those who taught. */
  .mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2.4rem 2rem; }
  .mcard { display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: inherit; }
  .mcard > .pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0.9rem; }
  .mcard > .pic img { transition: transform 600ms cubic-bezier(0.3, 0.7, 0.2, 1), filter 1200ms ease; }
  .mcard.hov > .pic img { transform: scale(1.05); }
  .mcard:active > .pic img { transform: scale(0.98); transition-duration: 160ms; }
  .mcard .e { display: flex; flex-direction: column; gap: 0.2rem; }
  .mcard .m { color: var(--soft); font-size: var(--s2); }
  .mcard .e b { font-weight: 400; font-size: var(--s3); line-height: 1.2; align-self: flex-start; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2.5px; padding-bottom: 0.14em; transition: background-size 460ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .mcard.hov .e b { background-size: 100% 2.5px; }
  .mcard:focus-visible { outline-offset: 6px; border-radius: 1rem; }
  .faces { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
  .face { width: 2.6rem; height: 2.6rem; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px var(--ground); background: var(--raised); }
  .face + .face { margin-left: -0.9rem; }
  .face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
  .faces .soft { margin-left: 0.3rem; }

  /* Who has danced with us: the people, as they are, never toned. */
  .danced { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 2.4rem 1.6rem; }
  .dancer { display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none; color: inherit; }
  /* the same rounded corners as every other picture on the site (an arch here read as a door) */
  .dancer > .pic { display: block; aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 0.8rem; border-radius: 0.9rem; }
  .dancer > .pic img { object-position: 50% 15%; filter: none !important; transition: transform 600ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .dancer.hov > .pic img { transform: scale(1.05); }
  .dancer:active > .pic img { transform: scale(0.98); transition-duration: 160ms; }
  .dancer b { font-weight: 300; font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.05; align-self: flex-start; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2.5px; padding-bottom: 0.14em; transition: background-size 460ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .dancer.hov b { background-size: 100% 2.5px; }
  .dancer:focus-visible { outline-offset: 6px; border-radius: 1rem; }
  .dancer > .pic.gr::before, .dancer > .pic.gr::after { display: none; }
  /* While it is on, the selling sentence steps aside so what is on now is on the first screen. */
  .ph-on .lead .words > p.soft { display: none; }
  /* On a phone the people stand two by two, and the cards keep the faces in the picture. */
  .danced { grid-template-columns: repeat(auto-fill, minmax(min(44%, 14rem), 1fr)); gap: 2rem 1rem; }
  @media (max-width: 34rem) { .dancer b { font-size: 1.35rem; } .dancer span { font-size: var(--s1); } }
  .mcard > .pic { aspect-ratio: 16 / 10; }
  .mcard > .pic img { object-position: 50% 22%; }
  .foot2 a.langchip { margin-top: 0.7rem; }

  /* Light, dark or by itself: a three-way switch in the footer. The chosen part is a filled pill that travels. */
  .foot2 .facepick { position: relative; display: inline-grid; grid-template-columns: repeat(3, auto); margin: 0.7rem 0 0 0.6rem; vertical-align: middle; padding: 0.2rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; color: var(--eve-i); }
  .foot2 .facepick button { position: relative; z-index: 1; font: inherit; font-size: var(--s1); font-weight: 500; color: inherit; background: none; border: 0; padding: 0.35rem 0.85rem; border-radius: 999px; cursor: pointer; transition: color 400ms ease, transform 140ms ease, background-color 300ms ease; }
  .foot2 .facepick button.hov:not([aria-checked="true"]) { background-color: rgba(248, 201, 168, 0.14); }
  .foot2 .facepick button[aria-checked="true"] { color: var(--eve-g); }
  .foot2 .facepick button:active { transform: scale(0.94); }
  .foot2 .facepick button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  .foot2 .facepick .thumb { position: absolute; z-index: 0; top: 0.2rem; bottom: 0.2rem; left: 0; width: 0; border-radius: 999px; background: var(--eve-i); transition: transform 450ms cubic-bezier(0.3, 0.7, 0.2, 1), width 450ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .foot2 a.langchip { vertical-align: middle; }
  .foot2 .facepick button.hov:not([aria-checked="true"]) { background-color: color-mix(in srgb, currentColor 14%, transparent); }
  /* On a phone the teachers and the earlier events are one row each that moves sideways under the finger, every
     card stopping in place at the start, and the next one showing at the edge so it is clear there is more. The row
     runs to the screen's edges; the first card lines up with the text above it. */
  @media (max-width: 40rem) {
    .danced, .mcards {
      grid-auto-flow: column; grid-template-columns: none; gap: 1rem;
      overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
      margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
      padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
      scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px));
      padding-bottom: 0.4rem;
    }
    .danced::-webkit-scrollbar, .mcards::-webkit-scrollbar { display: none; }
    .danced { grid-auto-columns: 58%; }
    .mcards { grid-auto-columns: 80%; }
    .danced > *, .mcards > * { scroll-snap-align: start; min-width: 0; }
    /* the language lives in the footer on a phone; the header keeps only the pages */
    .top nav #lang { display: none; }
  }

  /* ---- Checkout, as a page of the site: the same fields, choices and round buttons as the rest of it. */
  .checkout .band > .wrap { gap: 1.2rem; }
  .coform { max-width: 44rem; gap: 3.4rem; margin-top: 1.4rem; }
  .co-sec { display: flex; flex-direction: column; gap: 1.2rem; }
  .co-sec > h2, .co-head > h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 300; line-height: 1.1; }
  .co-wait { animation: co-breathe 1.6s ease-in-out infinite; }
  @keyframes co-breathe { 50% { opacity: 0.45; } }
  .co-tickets { display: flex; flex-direction: column; gap: 0.9rem; }
  .co-tk { position: relative; display: block; cursor: pointer; border-radius: 0.9rem; box-shadow: inset 0 0 0 1.5px var(--rule); background: transparent; transition: box-shadow 340ms ease, background-color 340ms ease, transform 180ms ease; }
  .co-tk input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .co-tkin { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.15rem 1.35rem 1.2rem 3.4rem; }
  /* the choice is a dot of the grid that swells when chosen, as everywhere on the site */
  .co-tkin::before { content: ""; position: absolute; left: 1.25rem; top: 1.45rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); transition: box-shadow 300ms ease; }
  .co-tkin::after { content: ""; position: absolute; left: 1.25rem; top: 1.45rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 380ms cubic-bezier(0.3, 0.7, 0.2, 1.3); }
  .co-tk.hov { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .co-tk:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--raised); }
  .co-tk:has(input:checked) .co-tkin::after { transform: scale(0.55); }
  .co-tk:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
  .co-tk:active { transform: scale(0.99); }
  .co-tk.off { opacity: 0.5; cursor: default; }
  .co-tktop { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
  .co-name { font-weight: 500; font-size: var(--s3); line-height: 1.2; }
  .co-price { font-size: var(--s3); font-weight: 400; white-space: nowrap; }
  .co-desc { font-size: var(--s2); line-height: 1.45; }
  .co-ladder { display: flex; flex-direction: column; gap: 0.15rem; font-size: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--rule); margin-top: 0.3rem; }
  .co-ladder b { font-weight: 500; }
  .co-ladder s { color: var(--soft); }
  .co-notes { font-size: 1rem; color: var(--soft); display: flex; flex-wrap: wrap; gap: 0.1rem 1.2rem; }
  .co-coderow { display: flex; gap: 1rem; align-items: flex-end; }
  .co-coderow .field { flex: 1; min-width: 0; }
  .co-coderow input { text-transform: uppercase; letter-spacing: 0.04em; }
  .co-mini { appearance: none; border: 0; font: inherit; font-size: var(--s1); font-weight: 500; color: var(--ink); background: transparent; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; padding: 0.5rem 1.05rem; cursor: pointer; white-space: nowrap; transition: background-color 260ms ease, color 260ms ease, transform 140ms ease; }
  .co-mini.hov, .co-mini:focus-visible { background: var(--ink); color: var(--ground); }
  .co-mini:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
  .co-mini:active { transform: scale(0.95); }
  .co-box select option { color: #3A1830; background: #F8C9A8; }
  .co-roles .choices { gap: 0.5rem 2.2rem; }
  .co-roles label.off { opacity: 0.5; }
  .co-roles i { font-style: normal; color: var(--soft); }
  .co-lines { display: flex; flex-direction: column; gap: 0.5rem; }
  .co-line { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--s2); }
  .co-total { font-size: var(--s3); padding-top: 0.6rem; border-top: 1.5px solid var(--ink); }
  .co-total b { font-weight: 500; }
  .co-termlist { margin: 0.4rem 0 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: var(--s2); color: var(--soft); }
  .co-msg { font-size: var(--s2); line-height: 1.5; }
  .co-msg .co-mini, .co-msg .pill { margin-top: 0.7rem; }
  .co-msg:empty { min-height: 0; }
  .co-go[aria-busy="true"] { opacity: 0.75; }
  .co-go[aria-busy="true"]::before { animation: co-breathe 1.2s ease-in-out infinite; }
  .co-go:disabled { cursor: default; }
  .bad input, .bad select { box-shadow: 0 2px 0 var(--ink); }
  .field.bad span, .check.bad span, fieldset.bad legend { color: var(--ink); font-weight: 500; }
  .co-done { display: flex; flex-direction: column; gap: 1rem; max-width: 40rem; margin-top: 1.4rem; }
  .co-done:focus { outline: none; }
  .co-ref { font-size: var(--s3); letter-spacing: 0.04em; }
  .coform.co-closed [data-co-details], .coform.co-closed .co-sum { display: none; }

  /* ---- The checkout form, made to be read at a glance. Each field's name stands above it in full colour; the field
     is a soft well that answers the pointer and the keyboard; what a field needs, or lacks, is said right under it;
     a field filled in as it should be gets the site's dot. What it costs, the terms and the button sit together. */
  .coform { gap: 3.6rem; }
  .co-head { display: flex; flex-direction: column; gap: 0.6rem; }
  .co-intro, .co-help, .co-small p, .co-codemsg { font-size: 1rem; line-height: 1.5; color: var(--soft); margin: 0; }
  .co-codemsg:empty { display: none; }

  /* Where the buyer is: three dots on a line, as on the platform's own checkout. The one you are at breathes. */
  .co-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 34rem; margin: 2.2rem 0 1.2rem; }
  .co-steps li { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding-right: 0.9rem; }
  .co-steps li:not(:last-child)::before, .co-steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.4rem; right: 0.5rem; top: calc(0.45rem - 0.75px); height: 1.5px; border-radius: 1px; }
  .co-steps li:not(:last-child)::before { background: var(--rule); }
  .co-steps li:not(:last-child)::after { background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 800ms cubic-bezier(0.45, 0, 0.2, 1); }
  .co-steps li.done::after { transform: scaleX(1); }
  .co-dot { position: relative; display: block; width: 0.9rem; height: 0.9rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--soft); transition: background-color 420ms ease, box-shadow 420ms ease; }
  .co-steps li.done .co-dot, .co-steps li[aria-current] .co-dot { background-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .co-steps li[aria-current] .co-dot::after { content: ""; position: absolute; inset: -0.5rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); opacity: 0; animation: co-halo 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
  @keyframes co-halo { 0% { transform: scale(0.4); opacity: 0.75; } 100% { transform: scale(1.2); opacity: 0; } }
  .co-sl { font-size: 1rem; line-height: 1.3; color: var(--soft); transition: color 420ms ease; }
  .co-steps li[aria-current] .co-sl { color: var(--ink); font-weight: 500; }
  .co-steps li.done .co-sl { color: var(--ink); }

  /* Fields */
  .co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.25rem; align-items: start; }
  .co-grid [data-co-f="experience"] { grid-column: 1 / -1; }
  @media (max-width: 34rem) { .co-grid { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; } }
  .co-f { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
  .co-f > label, .co-roles legend { font-size: 1rem; font-weight: 500; line-height: 1.3; color: var(--ink); letter-spacing: 0.01em; transform-origin: 0 50%; transition: transform 320ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .co-f > label { cursor: pointer; align-self: flex-start; }
  .co-f:focus-within > label { transform: translateX(4px); }
  .co-box { position: relative; display: block; }
  .co-box input, .co-box select { display: block; width: 100%; box-sizing: border-box; min-height: 3.3rem; margin: 0; padding: 0.8rem 1rem; font-size: 1.125rem; line-height: 1.3; color: var(--ink); background-color: color-mix(in srgb, var(--ink) 6%, var(--ground)); border: 0; border-radius: 0.85rem; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 28%, transparent); -webkit-appearance: none; appearance: none; transition: box-shadow 260ms ease, background-color 260ms ease; }
  .co-f.hov .co-box input, .co-f.hov .co-box select { background-color: color-mix(in srgb, var(--ink) 10%, var(--ground)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 60%, transparent); }
  .co-box input:focus, .co-box select:focus, .co-f.hov .co-box input:focus, .co-f.hov .co-box select:focus { outline: none; background-color: color-mix(in srgb, var(--ink) 9%, var(--ground)); box-shadow: inset 0 0 0 2px var(--ink); }
  .co-box input:-webkit-autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 28%, transparent), inset 0 0 0 10rem color-mix(in srgb, var(--ink) 6%, var(--ground)); transition: background-color 99999s; }
  .co-box input:-webkit-autofill:focus { box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 10rem color-mix(in srgb, var(--ink) 9%, var(--ground)); }
  .co-box select { cursor: pointer; padding-right: 2.8rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 7px 7px; background-position: calc(100% - 1.55rem) 50%, calc(100% - 1.12rem) 50%; background-repeat: no-repeat; }
  .co-box::after { content: ""; position: absolute; right: 1.05rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.3rem; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 480ms cubic-bezier(0.3, 1.5, 0.4, 1); pointer-events: none; }
  .co-f.ok .co-box::after { transform: scale(1); }
  .co-f.ok .co-box input { padding-right: 2.4rem; }
  [data-co-f="experience"] .co-box::after, [data-co-f="code"] .co-box::after { display: none; }
  .co-err { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--ink); }
  .co-err::before { content: "!"; flex: none; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; margin-top: 0.05rem; border-radius: 50%; background: var(--ink); color: var(--ground); font-size: 0.78rem; font-weight: 700; line-height: 1; }
  .co-f.bad .co-box input, .co-f.bad .co-box select { box-shadow: inset 0 0 0 2px var(--ink); }
  .bad .check input, .co-terms.bad .check input { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--ink); }

  /* A code: the field and its button side by side, the same height. */
  .co-code { display: flex; flex-direction: column; gap: 0.5rem; max-width: 28rem; }
  .co-coderow { display: flex; gap: 0.7rem; align-items: stretch; }
  .co-coderow input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.06em; }
  .co-coderow .co-mini { flex: none; padding: 0 1.35rem; font-size: 1rem; }

  /* Role */
  .co-roles { gap: 0.8rem; }
  .co-roles legend { margin-bottom: 0.8rem; }

  /* What it costs, the terms and the button, together on a card the flock shows faintly through. */
  .co-sum { gap: 1.3rem; padding: clamp(1.3rem, 3.6vw, 2.1rem); border-radius: 1.4rem; background: color-mix(in srgb, var(--raised) 80%, transparent); box-shadow: inset 0 0 0 1px var(--rule); }
  .co-terms { display: flex; flex-direction: column; gap: 0.55rem; }
  .co-sum .co-go { align-self: flex-start; margin-top: 0.3rem; }
  .co-small { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
  .co-small .mail { color: var(--ink); white-space: nowrap; user-select: all; }

  @media (prefers-reduced-motion: reduce) {
    .co-steps li[aria-current] .co-dot::after { animation: none; opacity: 0; }
    .co-f:focus-within > label { transform: none; }
    .co-steps li:not(:last-child)::after, .co-box::after { transition: none; }
  }
  @media (max-width: 34rem) {
    .co-sum { padding: 1.2rem 1.1rem 1.3rem; margin-inline: -0.25rem; }
    .co-sum .co-go { font-size: 1.25rem; gap: 0.75rem; }
    .co-sum .co-go::before { width: 3.1rem; height: 3.1rem; }
    .co-roles { margin-top: 0.5rem; }
  }

  /* The site's own dropdown: the same well as the other fields; it opens a list just under itself where the choice
     carries the site's dot, and the arrow turns as it opens. */
  .co-box.own::after { display: none; }
  .co-sel { position: relative; display: flex; align-items: center; min-height: 3.3rem; box-sizing: border-box; padding: 0.8rem 3rem 0.8rem 1rem; font-size: 1.125rem; line-height: 1.3; color: var(--ink); background-color: color-mix(in srgb, var(--ink) 6%, var(--ground)); border-radius: 0.85rem; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 28%, transparent); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: box-shadow 260ms ease, background-color 260ms ease, transform 140ms ease; }
  .co-sel::after { content: ""; position: absolute; right: 1.2rem; top: 50%; width: 0.5rem; height: 0.5rem; margin-top: -0.4rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 380ms cubic-bezier(0.3, 1.4, 0.4, 1), margin-top 380ms cubic-bezier(0.3, 1.4, 0.4, 1); }
  .co-f.open .co-sel::after { transform: rotate(225deg); margin-top: -0.1rem; }
  .co-f.hov .co-sel { background-color: color-mix(in srgb, var(--ink) 10%, var(--ground)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 60%, transparent); }
  .co-sel:focus, .co-f.open .co-sel { outline: none; background-color: color-mix(in srgb, var(--ink) 9%, var(--ground)); box-shadow: inset 0 0 0 2px var(--ink); }
  .co-sel:active { transform: scale(0.99); }
  .co-list { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 0.45rem); margin: 0; padding: 0.4rem; list-style: none; max-height: min(19rem, 60vh); overflow-y: auto; overscroll-behavior: contain; background: color-mix(in srgb, var(--ink) 4%, var(--ground)); border-radius: 0.95rem; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent), 0 22px 44px -20px rgba(20, 6, 16, 0.55); transform-origin: 50% 0; }
  .co-list:focus { outline: none; }
  .co-list li { position: relative; padding: 0.8rem 0.9rem 0.8rem 2.75rem; border-radius: 0.65rem; font-size: 1.125rem; line-height: 1.3; cursor: pointer; transition: background-color 200ms ease; }
  .co-list li::before { content: ""; position: absolute; left: 0.95rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -0.525rem; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0.55; transition: opacity 200ms ease; }
  .co-list li::after { content: ""; position: absolute; left: 0.95rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -0.525rem; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform 420ms cubic-bezier(0.3, 1.5, 0.4, 1); }
  .co-list li.at, .co-list li.hov { background-color: color-mix(in srgb, var(--ink) 11%, transparent); }
  .co-list li.at::before, .co-list li.hov::before { opacity: 1; }
  .co-list li.at:not([aria-selected="true"])::after, .co-list li.hov:not([aria-selected="true"])::after { transform: scale(0.3); }
  .co-list li[aria-selected="true"] { font-weight: 500; }
  .co-list li[aria-selected="true"]::before { opacity: 1; }
  .co-list li[aria-selected="true"]::after { transform: scale(0.55); }
  .co-list li:active { background-color: color-mix(in srgb, var(--ink) 16%, transparent); }
  @media (prefers-reduced-motion: reduce) { .co-sel::after, .co-list li::after { transition: none; } }
  /* ---- A day in the calendar, read as a small programme: the place once, then what happens there as dots on a
     thin line, the time first in even figures so the day reads down the left. */
  #cal-day { gap: 0.4rem; }
  #cal-day > b { margin-bottom: 0.5rem; }
  .dgrp { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.7rem; width: 100%; }
  .dplace { align-self: flex-start; font-size: 1rem; font-weight: 500; letter-spacing: 0.01em; color: var(--soft); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1.5px; padding-bottom: 0.1rem; transition: color 300ms ease, background-size 420ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  a.dplace::after { content: ""; display: inline-block; width: 0.72em; height: 0.72em; margin-left: 0.3em; vertical-align: -0.02em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 7.5 7.5 2.5M3.6 2.5h3.9v3.9' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 7.5 7.5 2.5M3.6 2.5h3.9v3.9' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 300ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  a.dplace.hov { color: var(--ink); background-size: 100% 1.5px; }
  a.dplace.hov::after { transform: translate(2px, -2px); }
  a.dplace:active { transform: translateY(1px); }
  .dline { display: grid; grid-template-columns: 0.8rem max-content minmax(0, 1fr); column-gap: 1rem; row-gap: 0.95rem; margin: 0; padding: 0; list-style: none; font-size: var(--s2); }
  .dline li { position: relative; display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; }
  .dd { position: relative; align-self: start; width: 0.8rem; height: 0.8rem; margin-top: 0.42em; border-radius: 50%; background: var(--ink); }
  .dline li:not(:last-child)::after { content: ""; position: absolute; left: calc(0.4rem - 0.75px); top: calc(0.42em + 0.8rem + 0.3rem); bottom: calc(0.3rem - 0.95rem - 0.42em); width: 1.5px; border-radius: 1px; background: var(--rule); }
  .dt { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .dn { font-weight: 500; line-height: 1.35; min-width: 0; }
  .dline li.past .dd { background: transparent; box-shadow: inset 0 0 0 1.5px var(--soft); }
  .dline li.past .dt, .dline li.past .dn { color: var(--soft); }
  .dline li.now .dd::before { content: ""; position: absolute; inset: -0.45rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); opacity: 0; animation: co-halo 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
  @keyframes co-halo { 0% { transform: scale(0.4); opacity: 0.75; } 100% { transform: scale(1.2); opacity: 0; } }
  @media (max-width: 26rem) { .dline { column-gap: 0.8rem; font-size: 1.05rem; } }
  @media (prefers-reduced-motion: reduce) { .dline li.now .dd::before { animation: none; opacity: 0; } }
  #cal-day .dplace { display: inline-block; gap: 0; }


  /* ---- A place, as one of equals: the same picture size for every place, its name, address and what it is for
     here, four lines of its own words with "Les mer" for the rest, and the map. A press on the picture opens all of
     the place's pictures; a "+2" says there are more. */
  .places { align-items: start; gap: 3rem 2.5rem; }
  .place { gap: 1.2rem; }
  .pcover { position: relative; width: 100%; }
  .pcover .pic { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 0.9rem; overflow: hidden; }
  .pcover .pic img { transition: transform 700ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .pcover .pic.none { aspect-ratio: 4 / 3; }
  .pc { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; border-radius: 0.9rem; transition: transform 180ms ease; }
  .pc.hov .pic img { transform: scale(1.04); }
  .pc:active { transform: scale(0.985); }
  .pc:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
  .pmore { position: absolute; z-index: 3; right: 0.7rem; bottom: 0.7rem; padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--ground); color: var(--ink); font-size: 0.95rem; font-weight: 500; font-variant-numeric: tabular-nums; transition: transform 300ms cubic-bezier(0.3, 1.4, 0.4, 1); }
  .pc.hov .pmore { transform: scale(1.08); }
  .ptext { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; min-width: 0; }
  .ptext h3 { font-weight: 400; font-size: var(--s3); line-height: 1.2; }
  .puse { margin-top: 0.35rem; font-size: var(--s2); font-weight: 500; line-height: 1.4; }
  .pdesc { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.2rem; max-height: calc(4 * 1.55em); overflow: hidden; }
  .pdesc.clip { -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
  .pdesc.open { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .pdesc p:focus { outline: none; }
  .pfold { appearance: none; border: 0; background: none; padding: 0.1rem 0; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1.5px; transition: background-size 420ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .pfold.hov { background-size: 100% 1.5px; }
  .pfold:active { transform: translateY(1px); }
  .ptext > a { margin-top: 0.35rem; }
  .lb-cap { position: fixed; z-index: 2; left: 50%; bottom: calc(2.2rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: min(70vw, 34rem); margin: 0; text-align: center; font-size: 0.8rem; line-height: 1.4; color: var(--eve-i); opacity: 0.72; }
  @media (prefers-reduced-motion: reduce) { .pcover .pic img, .pmore { transition: none; } }

  /* ---- Drawers for practical info and questions: headings on thin lines, each opening in place. */
  .drawers { max-width: 48rem; border-top: 1.5px solid var(--rule); }
  .dr { border-bottom: 1.5px solid var(--rule); }
  .drb { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.15rem 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; font-size: var(--s3); font-weight: 400; line-height: 1.25; text-align: left; cursor: pointer; }
  .drt { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px; padding-bottom: 0.1em; transition: background-size 460ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .drb.hov .drt { background-size: 100% 2px; }
  .drb.hov .plus { transform: scale(1.12); }
  .drb:active .plus { transform: scale(0.92); }
  .drb .plus { flex: none; }
  .drp { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; max-width: 42rem; padding: 0 0 1.5rem; }
  .drp p { margin: 0; }

  /* Today in the programme. The day we are in carries a small mark beside its date. On it, the session going on lies
     in a soft band; between sessions a line with the time shows how far the day has come, just above what is next. */
  .dtag { display: inline-block; align-self: baseline; position: relative; top: -0.3em; max-width: 0; margin-left: -1rem; padding: 0.2em 0; overflow: hidden; white-space: nowrap; opacity: 0; transform: translateY(0.4rem); background: var(--ink); color: var(--raised); border-radius: 99px; font-size: var(--s1); font-weight: 500; line-height: 1.2; transition: max-width 700ms cubic-bezier(0.3, 0.7, 0.2, 1), margin 700ms cubic-bezier(0.3, 0.7, 0.2, 1), padding 700ms cubic-bezier(0.3, 0.7, 0.2, 1), opacity 500ms ease, transform 700ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .dcol.today .dtag { max-width: 9em; margin-left: 0; padding: 0.2em 0.8em; opacity: 1; transform: none; }
  .trow > .tline { border-radius: 0.9rem; transition: background-color 600ms ease, padding 600ms cubic-bezier(0.3, 0.7, 0.2, 1), margin 600ms cubic-bezier(0.3, 0.7, 0.2, 1), width 600ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .trow.now > .tline { background: color-mix(in srgb, var(--ink) 10%, transparent); padding-inline: 0.7rem; margin-inline: -0.7rem; width: calc(100% + 1.4rem); }
  .trow.next::before { content: attr(data-clock); display: block; padding: 0.55rem 0 0.25rem; border-bottom: 2px solid var(--ink); color: var(--ink); font-size: var(--s1); font-weight: 600; font-variant-numeric: tabular-nums; animation: fdb-clock-in 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  @keyframes fdb-clock-in { from { opacity: 0; transform: translateY(-0.4rem); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .dtag, .trow > .tline { transition: none; } .trow.next::before { animation: none; } }

  /* A teacher's Instagram stands near the top of their page, where it is seen: our way of giving something back. */
  .ig { display: inline-flex; align-self: flex-start; align-items: center; gap: 0.6rem; padding: 0.6rem 1.2rem 0.6rem 0.9rem; border: 1.5px solid var(--ink); border-radius: 99px; color: var(--ink); text-decoration: none; line-height: 1.2; transition: background-color 260ms ease, color 260ms ease, transform 260ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .ig .ico { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
  .ig-k { font-weight: 500; }
  .ig-h { color: var(--soft); transition: color 260ms ease; }
  .ig.hov { background: var(--ink); color: var(--ground); }
  .ig.hov .ig-h { color: var(--ground); }
  .ig:active { transform: scale(0.97); }
  .ig:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  .taught { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
  .taught li { display: flex; flex-direction: column; gap: 0.2rem; }

  /* The top of an event: its name, one line of when and where, and the ticket with its price beside it. What the event
     says about itself follows in its own calm block, at reading size. */
  .when { display: flex; flex-direction: column; gap: 0.15rem; }
  .when .fact { font-size: var(--s2); line-height: 1.45; }
  .buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; margin-top: 0.8rem; }
  .lead .buy .pill { margin-top: 0; }
  .intro { max-width: 38rem; display: flex; flex-direction: column; gap: 1rem; }
  .intro p { font-size: var(--s2); line-height: 1.65; }

  /* Things that stand side by side are kept apart by a small drawn dot: a round shape, not a typed character, so it
     sits at the middle of the letters and takes the page's own colour. */
  .parts { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.7em; row-gap: 0.1em; }
  .parts > span:not(.vh) ~ span:not(.vh)::before { content: ""; display: inline-block; width: 0.32em; height: 0.32em; margin-right: 0.7em; border-radius: 50%; background: currentColor; opacity: 0.45; vertical-align: 0.18em; }

  /* Friday's evening at Café Sanaa is the next thing on, and Flow Dance Bergen is a partner in it: its day in the
     calendar stands out as our own days do. */
  .cd.sep, .cd.sep[aria-pressed="true"] { background: var(--ink); color: var(--ground); font-weight: 500; opacity: 1; box-shadow: none; }
  .cd.sep small { color: inherit; }
  .cd.sep.hov { box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4.5px color-mix(in srgb, var(--raised) 22%, var(--ink)); }

  /* Every box that can be pressed answers the hand: it lifts and turns ever so slightly, and its edge firms up.
     Cards, tickets in checkout, pictures that open, the choice lists and the calendar's days. */
  :is(.co-tk, .mcard, .dancer, .fcard, .gthumb, .pc, .co-sel, button.cd) { transition: transform 360ms cubic-bezier(0.3, 0.7, 0.2, 1), box-shadow 300ms ease, background-color 300ms ease; }
  :is(.co-tk:not(.off), .mcard, .dancer, .fcard, .gthumb, .pc, .co-sel, button.cd).hov { transform: translateY(-3px) rotate(-0.45deg); }
  :is(.co-tk:not(.off), .co-sel).hov { box-shadow: inset 0 0 0 2px var(--ink), 0 14px 26px -18px rgba(40, 12, 32, 0.55); background: color-mix(in srgb, var(--ink) 4%, transparent); }
  :is(.gthumb, .pc).hov { box-shadow: 0 16px 28px -18px rgba(40, 12, 32, 0.6); }
  button.cd:not(.on):not(.sep).hov { box-shadow: inset 0 0 0 1.5px var(--ink); }
  :is(.co-tk:not(.off), .mcard, .dancer, .fcard, .gthumb, .pc, .co-sel, button.cd):active { transform: translateY(-1px) rotate(-0.2deg) scale(0.99); transition-duration: 140ms; }
  @media (prefers-reduced-motion: reduce) { :is(.co-tk, .mcard, .dancer, .fcard, .gthumb, .pc, .co-sel, button.cd):is(.hov, :active) { transform: none; } }

  /* The school's own texts (sales terms, privacy): reading width, one heading size, the short version first. */
  .glance { max-width: 40rem; padding: 1.4rem 1.6rem 1.5rem; border-radius: 1rem; box-shadow: inset 0 0 0 1.5px var(--rule); display: flex; flex-direction: column; gap: 0.6rem; }
  .glance h2 { font-size: var(--s3); font-weight: 400; line-height: 1.2; margin: 0; }
  .glance ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
  .glance li { font-size: var(--s2); line-height: 1.55; }
  .doc { max-width: 40rem; display: flex; flex-direction: column; gap: 2.4rem; }
  .doc section { display: flex; flex-direction: column; gap: 0.8rem; }
  .doc h2 { font-size: var(--s3); font-weight: 400; line-height: 1.2; margin: 0; }
  .doc p { font-size: var(--s2); line-height: 1.65; margin: 0; }

  /* An address that is not part of the site: a big, calm number, a plain sentence, and the way on. */
  .nf { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; padding-block: 3rem 5rem; }
  .nf .dnum { display: block; font-size: clamp(5.5rem, 18vw, 10rem); line-height: 0.85; }
  .nf .lede { margin: 0; }
  .nf-on { display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; margin-top: 0.6rem; }

  /* Kontakt: the ways to reach Flow Dance Bergen as large rows to press, each with its own mark. */
  .reach { display: flex; flex-direction: column; max-width: 34rem; margin-top: 0.6rem; }
  .reach-row { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: 1.1rem; padding: 1.05rem 0.2rem; border-top: 1.5px solid var(--rule); color: var(--ink); text-decoration: none; transition: padding 300ms cubic-bezier(0.3, 0.7, 0.2, 1), background-color 300ms ease; }
  .reach-row:last-child { border-bottom: 1.5px solid var(--rule); }
  .reach-row .ico { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .reach-row > span { display: flex; flex-direction: column; min-width: 0; }
  .reach-row b { font-weight: 500; font-size: var(--s2); }
  .reach-row > span > span { color: var(--soft); overflow-wrap: anywhere; }
  .reach-row::after { content: "\2192"; font-size: var(--s3); transition: transform 260ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .reach-row.hov { padding-left: 0.6rem; background: color-mix(in srgb, var(--ink) 5%, transparent); }
  .reach-row.hov::after { transform: translateX(6px); }
  .reach-row:active { background: color-mix(in srgb, var(--ink) 10%, transparent); }

  /* The contact form: the site's own fields, a message field that grows with what is written, and a field only
     machines fill in, kept out of sight and out of reach. */
  .contact { max-width: 34rem; gap: 2rem; margin-top: 1.4rem; }
  .field.area textarea { width: 100%; box-sizing: border-box; min-height: 8.5rem; resize: vertical; font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 1.5rem 0 0.45rem; field-sizing: content; transition: box-shadow 340ms ease; }
  .field.area textarea:focus + span, .field.area textarea:not(:placeholder-shown) + span { transform: translateY(-1.3rem) scale(0.82); }
  .field.area textarea:focus { outline: none; box-shadow: 0 1.5px 0 var(--ink); }
  .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


  /* A link is as wide as its words, so the line that grows under it on hover follows the words, not the whole row. */
  .go, .back, .foot2 a { width: fit-content; max-width: 100%; }

  /* ---- The menu on a phone: the name, and one round button. It opens over the page in the site's own colours,
     with the pages in large type, the language and the colours as plain choices, and the next event at the foot. */
  .menu-btn { display: none; position: relative; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; cursor: pointer; transition: background-color 260ms ease, color 260ms ease, transform 200ms ease; }
  .menu-btn i { position: absolute; left: 50%; top: 50%; width: 1.15rem; height: 1.5px; margin-left: -0.575rem; background: currentColor; border-radius: 2px; transition: transform 420ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  .menu-btn i:first-of-type { transform: translateY(-0.2rem); }
  .menu-btn i:last-of-type { transform: translateY(0.2rem); }
  .menu-btn[aria-expanded="true"] i:first-of-type { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:last-of-type { transform: rotate(-45deg); }
  .menu-btn.hov, .menu-btn:focus-visible { background: var(--ink); color: var(--ground); outline: none; }
  .menu-btn:active { transform: scale(0.92); }
  .menu-btn::before { content: ""; position: absolute; inset: -0.4rem; border-radius: 50%; }
  .menu { position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain; background: var(--ground); color: var(--ink); }
  .menu-in { display: flex; flex-direction: column; gap: 2.4rem; min-height: 100%; box-sizing: border-box; padding: calc(1rem + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .menu-top { display: flex; justify-content: flex-end; }
  .menu-top .menu-btn { display: inline-grid; }
  .menu nav { display: flex; flex-direction: column; gap: 0.6rem; }
  .menu nav a { font-weight: 300; font-size: clamp(2.6rem, 13vw, 3.6rem); line-height: 1.1; text-transform: lowercase; text-decoration: none; color: inherit; width: fit-content; }
  .menu nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
  .menu-set { display: flex; flex-direction: column; gap: 1.2rem; padding-top: 1.4rem; border-top: 1.5px solid var(--rule); }
  .menu-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
  .menu-lang { display: flex; gap: 1.2rem; }
  .menu-lang a { color: inherit; text-decoration: none; padding: 0.3rem 0; }
  .menu-lang a[aria-current="true"] { font-weight: 500; text-decoration: underline; text-underline-offset: 0.22em; }
  .menu-next { margin-top: auto; display: flex; flex-direction: column; gap: 0.2rem; color: inherit; text-decoration: none; width: fit-content; }
  .menu-next b { font-weight: 400; font-size: var(--s3); }
  html.menu-open, html.menu-open body { overflow: hidden; }
  @media (max-width: 40rem) {
    .top .wrap > nav { display: none; }
    .top .wrap > .menu-btn { display: inline-grid; grid-row: 1; grid-column: 2; justify-self: end; }
  }

  /* The colour switch in the menu: the footer's switch, in the page's own colours. */
  .menu .facepick { position: relative; display: inline-grid; grid-template-columns: repeat(3, auto); padding: 0.2rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; color: var(--ink); }
  .menu .facepick button { position: relative; z-index: 1; font: inherit; font-size: var(--s1); font-weight: 500; color: inherit; background: none; border: 0; padding: 0.45rem 0.95rem; border-radius: 999px; cursor: pointer; transition: color 400ms ease, transform 140ms ease, background-color 300ms ease; }
  .menu .facepick button.hov:not([aria-checked="true"]) { background-color: color-mix(in srgb, currentColor 14%, transparent); }
  .menu .facepick button[aria-checked="true"] { color: var(--ground); }
  .menu .facepick button:active { transform: scale(0.94); }
  .menu .facepick button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  .menu .facepick .thumb { position: absolute; z-index: 0; top: 0.2rem; bottom: 0.2rem; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform 450ms cubic-bezier(0.3, 0.7, 0.2, 1), width 450ms cubic-bezier(0.3, 0.7, 0.2, 1); }
  #menu nav a:not(#lang) { font-weight: 300; font-size: clamp(2.6rem, 13vw, 3.6rem); line-height: 1.15; padding: 0.15rem 0; }

  /* The thanks after a message fills the space the form took: a panel in the page's own colours turned around, a
     check that draws itself, and one button back to a fresh form. */
  .contact-box { max-width: 34rem; margin-top: 1.4rem; }
  .contact-box .contact { margin-top: 0; }
  .sent { --g2: var(--ground); --i2: var(--ink); display: flex; border-radius: 1.4rem; overflow: hidden; }
  .sent-in { --ground: var(--i2); --ink: var(--g2); flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.2rem; padding: 2.4rem 2rem; background: var(--ground); color: var(--ink); }
  .sent h2 { margin: 0; outline: none; }
  .sent .lede { margin: 0; max-width: 24rem; }
  .sent .pill { margin-top: 0.6rem; }
  .tick { width: 4rem; height: 4rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .tick circle { stroke-dasharray: 183; stroke-dashoffset: 183; animation: fdb-draw 700ms 160ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
  .tick path { stroke-dasharray: 44; stroke-dashoffset: 44; animation: fdb-draw 420ms 700ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
  @keyframes fdb-draw { to { stroke-dashoffset: 0; } }
  @media (prefers-reduced-motion: reduce) { .tick circle, .tick path { animation: none; stroke-dashoffset: 0; } }

  /* ---- The iPhone Duo and other short, wide screens (as the Økan admin, docs/devices.md there): where the screen is too
     short for a bar at the top and the page needs its height, the controls stand in a column at the side. Closed, the
     Duo keeps its own column with the time and camera at the right edge, so ours stands there too, in reach of the right
     thumb, and starts under the time. Open wide, or on its side, the column moves to the left. Open tall keeps the
     header on top. The web is told nothing about the fold, so this follows the size alone. The column is the app's
     way to move about: only from the Home Screen. In a browser tab the page keeps its header and round menu button. */
  .rail, .top nav.rail { display: none; }
  .rail a { color: inherit; text-decoration: none; }
  @media (display-mode: standalone) and (max-width: 639px) and (min-aspect-ratio: 3/5), (display-mode: standalone) and (min-width: 640px) and (max-width: 1023px) and (min-aspect-ratio: 1/1) {
    :root { --rail: 76px; }
    .rail, .top nav.rail { display: flex; position: fixed; top: 0; bottom: 0; right: 0; z-index: 41; width: var(--rail); box-sizing: border-box; flex-direction: column; align-items: center; gap: 0.35rem; padding: max(1rem, env(safe-area-inset-top, 0px)) 0 max(1rem, env(safe-area-inset-bottom, 0px)); background: var(--ground); box-shadow: inset 1.5px 0 0 var(--rule); overflow-y: auto; scrollbar-width: none; }
    body { padding-right: var(--rail); }
    .top .wrap > nav, .top .wrap > .menu-btn { display: none; }
    .top nav.rail { gap: 0.3rem; }
    .top .rail > a:not(.rail-home):not(.rail-back):not(#lang) { display: grid; place-items: center; width: 100%; min-height: 44px; font-size: 0.85rem; font-weight: 500; text-transform: lowercase; text-align: center; line-height: 1.15; padding: 0.2rem 0.3rem; box-sizing: border-box; transition: background-color 240ms ease; }
    .top .rail > a { background-image: none; }
    .top .rail > a > svg.wv { display: none; }
    .top .rail > a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; }
    .rail > a.hov:not(.rail-home) { background: color-mix(in srgb, var(--ink) 8%, transparent); }
    .rail > a:active { transform: scale(0.94); }
    .rail-home { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 0.4rem; transition: transform 300ms cubic-bezier(0.3, 0.7, 0.2, 1); }
    .rail-home svg { width: 34px; height: 34px; fill: currentColor; }
    .rail-home.hov { transform: rotate(-6deg) scale(1.06); }
    .rail-back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 1.15rem; margin-bottom: 0.5rem; transition: background-color 240ms ease, color 240ms ease; }
    .rail-back[hidden] { display: none; }
    .rail-back.hov { background: var(--ink); color: var(--ground); }
    .rail-gap { flex: 1; }
    .rail .menu-btn { display: inline-grid; flex: none; }
    .menu { right: var(--rail); }
    .menu-top { display: none; }
    .stick { right: var(--rail); }
  }
  /* Closed and upright, the Duo's own time and camera stand at the top of the right edge: the column starts under them. */
  @media (display-mode: standalone) and (max-width: 639px) and (min-aspect-ratio: 3/5) {
    .rail { padding-top: max(150px, env(safe-area-inset-top, 0px)); }
  }
  /* Open wide, or closed on its side: the column at the left, as the Økan admin has it. */
  @media (display-mode: standalone) and (min-width: 640px) and (max-width: 1023px) and (min-aspect-ratio: 1/1) {
    .rail { right: auto; left: 0; box-shadow: inset -1.5px 0 0 var(--rule); padding-left: env(safe-area-inset-left, 0px); width: calc(var(--rail) + env(safe-area-inset-left, 0px)); }
    body { padding-right: 0; padding-left: calc(var(--rail) + env(safe-area-inset-left, 0px)); }
    .menu { right: 0; left: calc(var(--rail) + env(safe-area-inset-left, 0px)); }
    .stick { right: 0; left: var(--rail); }
  }
  /* From the Home Screen there is no browser bar: the page keeps clear of the status bar and the home indicator itself. */
  @media (display-mode: standalone) {
    .foot2 { padding-bottom: env(safe-area-inset-bottom, 0px); }
  }
