  * { box-sizing: border-box; }

  :root { --sheet-share: 75; }
  html, body { height: 100%; margin: 0; }

  html { background: var(--bg); }
  body {
    color: var(--ink);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .stage { flex: 1; display: flex; min-height: 0; position: relative; }

  aside {
    width: 232px;
    flex: none;
    background: var(--paper);
    border-right: 1px solid var(--line);
    padding: 16px 14px;
    overflow-y: auto;
  }

  aside { visibility: hidden; }
  html.ready aside { visibility: visible; }

  .home {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    text-decoration: none;
  }
  .home svg { width: 34px; height: auto; display: block; flex: none; }
  .home-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.005em;
    color: var(--logo-word);
  }
  .home:hover .home-name { text-decoration: underline; }

  aside h1 {
    font-size: 25px;
    font-weight: 600;

    max-width: 12.6em;
    text-wrap: balance;

    line-height: 1.05;
    letter-spacing: -.02em;
    margin: 0 0 14px;
  }

  .intro {
    margin: 0 0 26px;
    max-width: 40ch;
    line-height: 1.45;
    color: var(--prose);
  }

  .intro.short { display: none; }

  .intro:has(+ .intro-more:not([hidden])) { margin-bottom: 6px; }

  .more .sign { color: var(--mid); line-height: 1; }
  .more .sign::before { content: "+"; }
  .more[aria-expanded="true"] .sign::before { content: "−"; }
  .more:hover .sign, .more:focus-visible .sign { color: var(--ink); }

  .mark {
    width: 13px; height: 13px; flex: none; border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px currentColor;
  }
  .mark.box { border-radius: 2px; }
  button[aria-pressed="true"] .mark { background: currentColor; }

  .layer-text {
    margin: 7px 0 0 22px;
    max-width: 30ch;
    color: var(--mid);
    line-height: 1.45;
  }
  .layer-text[hidden] { display: none; }

  .sr {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip-path: inset(50%);
  }

  #info svg { display: block; width: 16px; height: 16px; fill: currentColor; }

  #info-dialog {
    max-width: 480px;
    border: 1px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    padding: 44px 46px 42px;
    font: inherit;
  }
  #info-dialog::backdrop { background: var(--backdrop); }

  #info-dialog:focus { outline: none; }

  #info-dialog[open] { animation: dialog-in 300ms cubic-bezier(.65, 0, .35, 1); }
  #info-dialog[open]::backdrop { animation: backdrop-in 300ms cubic-bezier(.65, 0, .35, 1); }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } }
  @keyframes backdrop-in { from { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) {
    #info-dialog[open], #info-dialog[open]::backdrop { animation: none; }
  }
  #info-dialog h2 {
    font-size: 18px; font-weight: 600; letter-spacing: -.01em;
    margin: 0 0 22px;
  }
  #info-dialog p { margin: 0 0 18px; }
  #info-dialog .source { color: var(--mid); }
  #info-dialog .links { display: flex; gap: 22px; margin: 6px 0 18px; }

  #info-dialog .source { margin-bottom: 6px; }
  #info-dialog .source:last-of-type { margin-bottom: 34px; }

  #info-dialog a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: .1em;
    text-underline-offset: .2em;
  }

  #info-close {
    width: auto;
    background: none;
    border: 1px solid currentColor;
    padding: 7px 16px;
    line-height: 1;
    justify-content: center;
    text-decoration: none;
  }

  #info-close:hover, #info-close:focus-visible {
    background: var(--ink);
    color: var(--halo);
  }
  #info-close:hover,
  #info-close:focus-visible {
    background: var(--sticker-ink);
    color: var(--sticker-bg);
    border-color: var(--sticker-bg);
  }

  .group { margin-bottom: 20px; }

  .group h2 {

    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--mid);
    margin: 0 0 10px;
  }

  button {
    font: inherit;
    color: inherit;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 7px 9px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
  }
  button:hover { border-color: var(--mid); }

  button[hidden] { display: none; }
  button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

  .dot {
    width: 11px; height: 11px; flex: none; border-radius: 50%;

    box-shadow: inset 0 0 0 1px currentColor;
  }
  .label { flex: 1; }

  .unavailable, .unavailable h2 { color: var(--line); }
  .unavailable button { cursor: default; }
  .unavailable button:hover .label { text-decoration: none; }

  .map-wrap { flex: 1; position: relative; min-width: 0; }
  canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }

  canvas { position: relative; z-index: 1; }

  #pulse { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  #pulse[hidden], .pulse[hidden] { display: none; }
  .pulse {
    position: absolute; left: 0; top: 0;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
    animation: pulse var(--pulse-duration) cubic-bezier(.2, .6, .4, 1) infinite;
    animation-delay: calc(var(--pulse-phase, 0) * var(--pulse-duration) * -1);
  }

  @keyframes pulse {
    0%   { scale: 1; opacity: var(--pulse-strength); }
    66%  { scale: var(--pulse-scale); opacity: 0; }
    100% { scale: var(--pulse-scale); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .pulse { display: none; }
  }
  canvas:active { cursor: grabbing; }

  .topright {
    position: absolute; top: 16px; right: 20px; z-index: 5;
    display: flex; align-items: center; gap: 18px;
    text-shadow: 0 0 4px var(--halo), 0 0 4px var(--halo), 0 0 9px var(--halo);
  }
  .topright button,
  .topleft button {
    width: auto; background: none; border: 0;
    padding: 0; margin: 0; gap: 7px;
    justify-content: flex-start;
  }

  .topright button:hover,
  .topright button:focus-visible { text-decoration: underline; }

  #fullscreen { display: none; }
  html.can-fullscreen #fullscreen { display: flex; }

  html[lang="de"] #lang .de,
  html[lang="en"] #lang .en { display: none; }

  .card { position: relative; }

  .card .close {
    position: absolute; top: 8px; right: 8px;
    width: 26px; height: 26px; padding: 0; margin: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--sticker-ink); background: var(--ink);
    border: 0; border-radius: 50%; cursor: pointer;

    z-index: 2;
  }
  .card .close svg { width: 15px; height: 15px; display: block; }
  .card.plain .close { box-shadow: 0 0 0 1px var(--sticker-ink); }
  .card .close:hover, .card .close:focus-visible { background: var(--sticker-ink); color: var(--ink); }
  .card h3 { font-size: 15px; margin: 0 0 3px; line-height: 1.3; padding-right: 30px; }

  #cards .card .card-media { flex: none; }
  #cards .card .card-body { overflow-y: auto; min-height: 0; }
  .card .city { color: var(--mid); margin: 0 0 12px; }

  .card-media { margin: 0; }

  .gallery { position: relative; margin-bottom: 5px; }

  .imgbox {
    aspect-ratio: var(--photo-ratio, 4 / 3);
    max-height: 30dvh;
  }

  .gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; padding: 0;
    display: flex; align-items: center; justify-content: center;

    color: var(--sticker-ink); background: var(--ink);
    border: 0; border-radius: 50%; cursor: pointer;
  }
  .gallery-arrow svg { width: 15px; height: 15px; display: block; }
  .gallery-arrow.previous { left: 6px; }
  .gallery-arrow.next { right: 6px; }
  .gallery-arrow:hover, .gallery-arrow:focus-visible { background: var(--sticker-ink); color: var(--ink); }
  .gallery-count { margin-left: 6px; }
  .imgbox img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .credit {
    margin: 0 0 14px;
    font-size: 10px; line-height: 1.35; color: var(--mid);
    overflow-wrap: anywhere;
  }

  .programme-text {
    font-size: 11px; color: var(--mid); line-height: 1.45;
    margin: 4px 0 10px 22px;
  }

  #annotations { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
  .annotation {
    position: absolute;
    background: var(--veil);
    padding: 4px 7px;
    font-size: 10px; line-height: 1.45;
  }
  .annotation-city {
    display: block; text-transform: uppercase; letter-spacing: .07em;
    color: var(--mid); font-size: 9px; margin-bottom: 2px;
  }

  .annotation-row {
    display: block; color: var(--ink); white-space: nowrap;
    pointer-events: auto; cursor: pointer;
    appearance: none; background: none; border: 0; padding: 0;
    font: inherit; text-align: inherit;

    margin: 0;
  }
  .annotation-row:hover { text-decoration: underline; }
  .annotation-city { white-space: nowrap; }

  .annotation-place { color: var(--mid); }

  .annotation.to-right { text-align: left; border-left: 2px solid var(--ink); }
  .annotation.to-left { text-align: right; border-right: 2px solid var(--ink); }
  .annotation.to-above { border-bottom: 2px solid var(--ink); }
  .annotation.to-below { border-top: 2px solid var(--ink); }
  .annotation[hidden] { display: none; }

  body[data-chrome="overlay"] .programme-text { max-width: 300px; }

  #museum-tip {
    position: absolute; z-index: 5; pointer-events: none;
    background: var(--paper); border: 1px solid var(--line);
    padding: 10px 13px; max-width: 280px;
    font-size: 13px; line-height: 1.45; color: var(--ink);
    box-shadow: 0 4px 18px var(--shadow);
  }
  #museum-tip[hidden] { display: none; }

  #museum-tip.pinned { pointer-events: auto; border-color: var(--ink); }
  .tip-line { display: block; overflow-wrap: anywhere; }

  .tip-line:first-child { font-weight: 600; letter-spacing: -.01em; }
  .tip-line:not(:first-child) { color: var(--mid); font-size: 12px; }
  .tip-line:nth-child(2) { margin-top: 1px; }
  a.tip-line { margin-top: 5px; }
  a.tip-line { text-decoration: underline; }

  .field { margin-bottom: 13px; }

  .description {
    color: var(--mid); font-size: 11px; line-height: 1.5;
    margin-bottom: 13px;
  }
  a { color: inherit; }

  .panel {
    width: 310px;
    flex: none;
    background: var(--paper);
    border-left: 1px solid var(--line);
    padding: 16px;
    overflow-y: auto;
    display: none;
  }
  .panel.open { display: block; }

  #cards { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
  #cards .card {
    position: absolute;
    pointer-events: auto;
    width: 320px;

    max-height: min(560px, calc(100% - 32px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--ink);
    padding: 14px 15px 4px;
    box-shadow: 0 3px 16px var(--shadow);
  }

  #strip { display: none; }

  body[data-chrome="overlay"] aside {
    position: absolute; top: 6px; left: 10px; z-index: 3;
    width: auto; max-width: calc(34% + 20px);
    background: none; border-right: 0;

    max-height: calc(100% - 22px);
    overflow: auto;

    scrollbar-width: thin;
    scrollbar-color: transparent transparent;

    transition: transform 420ms cubic-bezier(.65, 0, .35, 1),
                opacity 420ms cubic-bezier(.65, 0, .35, 1),
                visibility 0s;

    padding: 10px;
  }
  body[data-chrome="overlay"] aside:hover { scrollbar-color: var(--mid) transparent; }

  body[data-chrome="overlay"] .group { margin-bottom: 24px; }
  body[data-chrome="overlay"] .group:last-child { margin-bottom: 0; }
  body[data-chrome="overlay"] .group h2 { margin-bottom: 12px; }
  body[data-chrome="overlay"] aside button {
    background: none; border: 0; padding: 2px 0; margin: 0 0 4px;
    width: auto; justify-content: flex-start; gap: 9px;
  }
  body[data-chrome="overlay"] aside h1 { margin-bottom: 18px; }
  body[data-chrome="overlay"] .intro { margin-bottom: 24px; }
  @media (hover: hover) {
    body[data-chrome="overlay"] aside button:hover .label { text-decoration: underline; }
  }

  body[data-chrome="overlay"] .intro-more { margin: 0 0 24px; }
  body[data-chrome="overlay"] aside button[aria-pressed="true"] { background: none; color: inherit; }
  body[data-chrome="overlay"] aside button[aria-pressed="false"] { color: var(--mid); }
  body[data-chrome="overlay"] aside .unavailable button[aria-pressed="false"],
  body[data-chrome="overlay"] aside .unavailable h2 { color: var(--line); }

  body[data-chrome="overlay"] aside.away {
    transform: translateX(calc(-100% - 20px));
    opacity: 0;
    visibility: hidden;
    transition: transform 420ms cubic-bezier(.65, 0, .35, 1),
                opacity 420ms cubic-bezier(.65, 0, .35, 1),
                visibility 0s 420ms;
  }
  @media (prefers-reduced-motion: reduce) {
    body[data-chrome="overlay"] aside,
    body[data-chrome="overlay"] aside.away { transition: none; }
  }

  .topleft {
    position: absolute; top: 16px; left: 20px; z-index: 5;
    text-shadow: 0 0 4px var(--halo), 0 0 4px var(--halo), 0 0 9px var(--halo);
  }
  .topleft button:not([hidden]) { animation: column-show-in 200ms 300ms both; }
  @keyframes column-show-in { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .topleft button:not([hidden]) { animation: none; }
  }
  #column-show .sign::before { content: "→"; }

  #column-hide .sign { width: 13px; flex: none; text-align: center; line-height: 1; }
  #column-hide .sign::before { content: "←"; }

  body[data-chrome="overlay"] aside {
    text-shadow: 0 0 4px var(--halo), 0 0 4px var(--halo), 0 0 9px var(--halo);
  }
  @media (prefers-reduced-motion: reduce) {
  }
  #strip .card-body { margin-top: 12px; }
  #strip .field { margin-bottom: 11px; }

  @media (max-width: 800px) {

    .home-name { display: none; }
    .home svg { width: 28px; }
    .home { margin-bottom: 10px; }

    html, body { height: auto; }
    body { font-size: 14px; }

    .stage { flex-direction: column; min-height: 0; }

    .map-wrap {
      order: -1;
      flex: none;
      height: 58vh;
      height: 58svh;
      height: calc(var(--view-unit, 1svh) * 58);
      border-bottom: 1px solid var(--line);
    }

    #fullscreen { display: flex; }
    body.map-full .map-wrap { height: calc(var(--view-unit, 1svh) * 100); }

    body.map-full #column { display: none; }

    aside {
      width: auto;
      flex: none;
      border-right: 0;
      overflow: visible;
      padding: 14px 12px 22px;
    }
    .group { margin-bottom: 20px; }
    button { padding: 11px 12px; margin-bottom: 6px; }

    body[data-chrome="overlay"] aside {
      position: static; max-width: none; width: auto;
      display: block; padding: 14px 12px 22px; background: var(--paper);
    }
    body[data-chrome="overlay"] .group { display: block; margin-bottom: 20px; }
    body[data-chrome="overlay"] button {
      background: var(--paper); border: 1px solid var(--line);
      padding: 11px 12px; margin-bottom: 6px; width: 100%; justify-content: space-between;
    }
    body[data-chrome="overlay"] button[aria-pressed="true"] {
      background: var(--ink); color: var(--paper); border-color: var(--ink);
    }

    .dot { display: none; }

    .panel.open,
    #cards .card {
      position: fixed;
      left: 0; right: 0; bottom: 0; top: auto;
      width: auto;

      height: calc(var(--view-unit, 1svh) * var(--sheet-share));
      overflow-y: auto;
      overscroll-behavior: contain;
      border: 0;
      border-top: 1px solid var(--ink);
      background: var(--paper);
      padding: 16px;
      box-shadow: 0 -6px 24px var(--shadow);
      z-index: 10;
    }

    #cards .card .card-media { margin: -16px -16px 0; }

    html.sheet-open { overflow: hidden; }

    .imgbox {
      aspect-ratio: var(--photo-ratio, 3 / 2);
      max-height: calc(var(--view-unit, 1svh) * var(--sheet-share) * 0.55);
    }
    #cards .card .card-media .credit { padding: 0 16px; }
    #cards .card:has(.card-media + .card-media) .imgbox { max-height: 11dvh; }

    .card .close { width: 34px; height: 34px; top: 8px; right: 8px; }
    #cards { position: static; }  }

  .intro {
    font-size: 18px;

    line-height: 1.3;
  }

  aside button,
  .topright button,
  .topleft button,
  .layer-text {
    font-size: 16px;
  }

  .topright { gap: 8px; }
  .map-wrap .topright button,
  .map-wrap .topleft button {

    width: auto;
    border: 1px solid currentColor;
    padding: 7px 10px;
    line-height: 1;
    justify-content: center;
    text-align: center;
  }

  .topright button:hover,
  .topright button:focus-visible,
  .topleft button:hover,
  .topleft button:focus-visible {
    background: var(--sticker-ink);
    color: var(--sticker-bg);
    border-color: var(--sticker-bg);
    text-decoration: none;

    text-shadow: none;
  }

  #lang, #info { width: 32px; padding: 7px 0; }

  #info-dialog {
    max-width: 540px;
    font-size: 18px;
    line-height: 1.3;
  }
  #info-dialog h2 {
    font-size: 26px;
    font-weight: bold;
    line-height: 1.05;
    letter-spacing: 0;
    -webkit-text-stroke-width: .55em;
    -webkit-text-stroke-color: var(--sticker-bg);
    paint-order: stroke fill;
    color: var(--sticker-ink);
    margin-bottom: 16px;
  }
  #info-dialog .source {
    font-size: 15px;
  }

  @media (max-width: 800px) {
    #info-dialog {
      max-width: calc(100% - 24px);
      padding: 30px 26px 26px;
      font-size: 16px;
      line-height: 1.4;
    }

    #info-dialog h2 { font-size: 22px; margin-bottom: 24px; }
    #info-dialog p { margin-bottom: 14px; }
    #info-dialog .links { margin: 4px 0 20px; }
    #info-dialog .source { font-size: 13px; line-height: 1.4; }
    #info-dialog .source:last-of-type { margin-bottom: 24px; }
  }

  .programme-text {
    font-size: 13px;
  }

  aside h1,
  #filters button[aria-pressed="true"] .label {
    -webkit-text-stroke-color: var(--sticker-bg);
    paint-order: stroke fill;
    color: var(--sticker-ink);

    text-shadow: none;
  }

  aside h1 {
    font-size: 31px;
    font-weight: bold;

    letter-spacing: normal;

    line-height: 1.05;

    -webkit-text-stroke-width: .55em;

    max-width: 20ch;

    padding: .32em 0 .28em;
    margin-bottom: 18px;
  }

  #programme-group {
    border-left: 1px solid var(--line);
    padding-left: 14px;
  }

  .group h2 {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.35;
    color: var(--ink);
  }

  #filters button[aria-pressed="true"] .label {

    -webkit-text-stroke-color: var(--programme);
    color: var(--programme-ink);
    -webkit-text-stroke-width: .3em;
    font-weight: bold;
    text-decoration: none;
  }

  #cards .card {
    background: var(--programme);
    color: var(--programme-ink);
    border: 0;
    box-shadow: none;
  }

  #cards .card .city,
  #cards .card .credit {
    color: currentColor;
    border-color: currentColor;
    opacity: .82;
  }
  #cards .card .description {
    color: currentColor;
    opacity: .85;
  }

  #cards .card .imgbox {
    color: currentColor;
    border-color: currentColor;
    background: none;
    opacity: .9;
  }
  .card h3 {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .card .city {
    font-size: 15px;
  }
  .card-body a {
    text-decoration: underline;
    text-decoration-thickness: .1em;
    text-underline-offset: .2em;
  }
  .description {
    font-size: 13px;
  }

  #museum-tip {
    background: var(--sticker-bg);
    color: var(--sticker-ink);
    border: 0;
    box-shadow: none;
    padding: 12px 15px;
  }

  #museum-tip.pinned {
    box-shadow: 0 0 0 2px var(--sticker-ink);
  }
  #museum-tip .tip-line:first-child {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.15;
  }

  #museum-tip .tip-line:not(:first-child) {
    color: inherit;
    opacity: .8;
    font-size: 14px;
  }
  #museum-tip a.tip-line {
    opacity: 1;
    text-decoration-thickness: .1em;
    text-underline-offset: .2em;
  }

  #museum-tip::before {
    content: "";
    position: absolute;
    border-style: solid;
    border-color: transparent;
  }
  #museum-tip[data-tail="top-left"]::before {
    top: -14px; left: 14px;
    border-width: 0 8px 14px; border-bottom-color: var(--sticker-bg);
  }
  #museum-tip[data-tail="top-right"]::before {
    top: -14px; right: 14px;
    border-width: 0 8px 14px; border-bottom-color: var(--sticker-bg);
  }
  #museum-tip[data-tail="bottom-left"]::before {
    bottom: -14px; left: 14px;
    border-width: 14px 8px 0; border-top-color: var(--sticker-bg);
  }
  #museum-tip[data-tail="bottom-right"]::before {
    bottom: -14px; right: 14px;
    border-width: 14px 8px 0; border-top-color: var(--sticker-bg);
  }

  @media (hover: hover) {
    aside .group:not(.unavailable) button:hover .label {
      -webkit-text-stroke-color: var(--sticker-hover-bg);
      -webkit-text-stroke-width: .3em;
      paint-order: stroke fill;
      color: var(--sticker-hover-ink);
      text-decoration: none;

      text-shadow: none;
    }

    #programme-group:not(.unavailable) #filters button:hover .label {
      -webkit-text-stroke-color: var(--programme);
      color: var(--programme-ink);
    }
  }

  #layers button[aria-pressed="true"] .label {
    -webkit-text-stroke-color: var(--sticker-hover-bg);
    -webkit-text-stroke-width: .3em;
    paint-order: stroke fill;
    color: var(--sticker-hover-ink);
    text-decoration: none;
    text-shadow: none;
  }

