/* Collezione Nuti — una galleria di maglie incorniciate.
   Parete verde da museo, cornici scure con passe-partout, cartellini color carta, dettagli in ottone. */
:root {
  --wall: #1f302b;
  --wall-deep: #17241f;
  --wall-light: #2a3f38;
  --paper: #ede6d6;
  --paper-2: #e2d9c4;
  --ink: #1d1a15;
  --ink-soft: #5e574a;
  --brass: #b08d57;
  --brass-light: #d4b47c;
  --on-wall: #e9e3d3;
  --on-wall-soft: #9fb0a8;
  --frame: #15110d;
  --danger: #9b3b2a;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 4.5vw, 4rem);
}

* { box-sizing: border-box; }
html { background: var(--wall); color: var(--on-wall); font-family: var(--sans); font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -10%, var(--wall-light) 0%, transparent 60%),
    linear-gradient(var(--wall), var(--wall-deep) 140%);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px; padding: .7rem 1.25rem;
  font-family: var(--sans); font-weight: 600; font-size: .92rem; font-stretch: 90%; letter-spacing: .01em;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-brass { background: var(--brass); color: var(--frame); }
.btn-brass:hover { background: var(--brass-light); }
.btn-quiet { border-color: #e9e3d340; color: var(--on-wall); background: transparent; }
.btn-quiet:hover { border-color: var(--brass); color: var(--brass-light); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-text {
  border: 0; background: none; padding: .4rem 0; cursor: pointer;
  font-size: .92rem; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px;
}
.btn-text:disabled { opacity: .35; cursor: default; text-decoration: none; }
.btn-danger { color: var(--danger); }

/* ---------- Testata ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem var(--pad);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  border: 1px solid var(--brass); color: var(--brass-light);
  font-family: var(--serif); font-size: 1.25rem; font-style: italic; line-height: 1;
}
.brand-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: .01em; }
.topbar-actions { display: flex; gap: .6rem; }

/* ---------- Ingresso ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 5vw, 4rem) var(--pad) clamp(3rem, 7vw, 6rem);
}
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.015em;
  font-variation-settings: "opsz" 96;
}
.hero-lede {
  max-width: 34ch; margin: 1.5rem 0 2rem; color: var(--on-wall-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.55;
}
.hero-work { position: relative; margin: 0; display: grid; justify-items: center; gap: 1.5rem; }
.spotlight {
  position: absolute; inset: -18% -10% 10%; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 55% at 50% 38%, #fff7e126 0%, #fff7e10d 45%, transparent 72%);
  opacity: 0; animation: lights-on 1.6s .25s ease-out forwards;
}
@keyframes lights-on { to { opacity: 1; } }

/* ---------- Cornice ---------- */
.frame {
  position: relative; z-index: 1; display: block; padding: 0; cursor: pointer;
  background: var(--paper);                          /* passe-partout */
  border: clamp(8px, 1.1vw, 14px) solid var(--frame);
  box-shadow:
    inset 0 0 0 1px #00000026,
    0 0 0 1px #3a2f24,
    0 18px 30px -12px #00000099,
    0 40px 70px -30px #00000080;
}
.frame img {
  width: 100%; aspect-ratio: 720 / 860; object-fit: cover;
  box-shadow: 0 0 0 1px #0000002e, 0 2px 6px #0000002e;
}
.frame-lg { width: min(380px, 80%); padding: clamp(18px, 2.6vw, 34px); }
.frame-xl { width: 100%; padding: clamp(18px, 3vw, 40px); cursor: default; }

/* ---------- Cartellino ---------- */
.plaque {
  display: grid; gap: .15rem; background: var(--paper); color: var(--ink);
  padding: .8rem 1rem .85rem; border-radius: 1px;
  box-shadow: 0 6px 14px -8px #00000099;
}
.plaque-kicker { font-size: .78rem; color: var(--ink-soft); font-stretch: 90%; }
.plaque-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.plaque-meta { font-size: .85rem; color: var(--ink-soft); }
.plaque-hero { z-index: 1; min-width: 15rem; text-align: left; }

/* ---------- Sale e strumenti ---------- */
.rooms {
  position: sticky; top: 0; z-index: 10;
  padding: 1.1rem var(--pad) .9rem;
  background: color-mix(in srgb, var(--wall-deep) 94%, transparent);
  backdrop-filter: blur(8px);
  border-block: 1px solid #b08d5733;
}
.rooms-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: .7rem; }
.rooms-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.rooms-count { margin: 0; color: var(--on-wall-soft); font-size: .9rem; }
.room-list { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; }
.room {
  flex: none; cursor: pointer; border: 1px solid #e9e3d32e; background: transparent; border-radius: 999px;
  padding: .42rem .9rem; font-size: .88rem; color: var(--on-wall); white-space: nowrap;
  transition: border-color .2s, background-color .2s, color .2s;
}
.room span { color: var(--on-wall-soft); margin-left: .35rem; font-variant-numeric: tabular-nums; }
.room:hover { border-color: var(--brass); }
.room[aria-selected="true"] { background: var(--brass); border-color: var(--brass); color: var(--frame); }
.room[aria-selected="true"] span { color: #15110daa; }

.tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.search { position: relative; flex: 1 1 280px; }
.search svg {
  position: absolute; left: .8rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%);
  fill: none; stroke: var(--on-wall-soft); stroke-width: 1.6; stroke-linecap: round;
}
.tools input, .tools select {
  width: 100%; border: 1px solid #e9e3d32e; background: #0000002b; color: var(--on-wall);
  border-radius: 2px; padding: .58rem .8rem; font-size: .9rem;
}
.search input { padding-left: 2.3rem; }
.tools input::placeholder { color: var(--on-wall-soft); }
.tools select { width: auto; max-width: 14rem; }
.tools select option { color: var(--ink); }
.tools .btn-text { color: var(--brass-light); }

/* ---------- Parete ---------- */
.wall { padding: 2.75rem var(--pad) 5rem; }
.status { margin: 0 0 1.5rem; color: var(--on-wall-soft); min-height: 1.3em; }
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(2.5rem, 4vw, 3.75rem) clamp(1.5rem, 3vw, 2.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr));
  align-items: start;
}
.work { display: grid; gap: 1rem; cursor: pointer; }
.work .frame { padding: clamp(12px, 1.5vw, 18px); border-width: 9px; }
.work .frame .back { position: absolute; inset: clamp(12px, 1.5vw, 18px); width: calc(100% - 2 * clamp(12px, 1.5vw, 18px)); opacity: 0; transition: opacity .35s ease; }
.work:hover .frame .back, .work:focus-visible .frame .back { opacity: 1; }
.work:focus-visible { outline: none; }
.work:focus-visible .frame { outline: 2px solid var(--brass-light); outline-offset: 4px; }
.work .plaque { justify-self: start; width: 100%; }
.work .plaque-title { font-size: 1.02rem; }
.plaque-row { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.inv-no { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: .9rem; white-space: nowrap; }
.work.unknown .plaque-title { font-weight: 400; font-style: italic; color: var(--ink-soft); }

.footer { padding: 2rem var(--pad) 3rem; color: var(--on-wall-soft); font-size: .85rem; border-top: 1px solid #b08d5726; }

/* ---------- Scheda di catalogo ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: #0c1310e6; }
.room-view {
  width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background:
    radial-gradient(70% 70% at 30% 35%, var(--wall-light) 0%, transparent 70%),
    var(--wall);
  color: var(--on-wall); overflow-y: auto;
}
.room-view[open] { animation: enter .35s ease-out; }
@keyframes enter { from { opacity: 0; } }
.room-view-inner {
  min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: clamp(3.5rem, 6vw, 5rem) var(--pad);
}
.exhibit { display: grid; justify-items: center; gap: 1.25rem; }
.exhibit .frame-xl { max-width: min(520px, 68vh); }
.side-toggle { display: inline-flex; border: 1px solid #e9e3d340; border-radius: 999px; padding: 3px; }
.side-toggle button {
  border: 0; background: none; cursor: pointer; padding: .4rem 1.1rem; border-radius: 999px; font-size: .88rem; color: var(--on-wall);
}
.side-toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

.catalogue {
  background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 60px -30px #000000b3;
}
.inv { margin: 0 0 .6rem; font-family: var(--serif); font-style: italic; color: #8a6a3a; }
.catalogue h2 {
  margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05;
}
.catalogue-sub { margin: .5rem 0 0; color: var(--ink-soft); }
.facts {
  margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem;
  border-top: 1px solid #1d1a1526; padding-top: 1.25rem;
}
.facts div { display: grid; gap: .2rem; }
.facts dt { font-size: .8rem; color: var(--ink-soft); font-stretch: 90%; }
.facts dd { margin: 0; font-size: 1rem; font-weight: 500; }
.pips { display: inline-flex; gap: 3px; margin-right: .5rem; vertical-align: 1px; }
.pips i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--brass); }
.pips i.on { background: var(--brass); }
.provenance { margin-top: 1.6rem; border-top: 1px solid #1d1a1526; padding-top: 1.25rem; }
.provenance h3 { margin: 0 0 .5rem; font-size: .8rem; font-weight: 500; color: var(--ink-soft); font-stretch: 90%; }
.provenance p {
  margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.18rem; line-height: 1.55; max-width: 38ch;
}
.catalogue-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.75rem; }
.catalogue-nav {
  display: flex; justify-content: space-between; margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid #1d1a1526;
}
.close {
  position: fixed; top: 1rem; right: 1rem; z-index: 2; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid #e9e3d340; background: #00000033; cursor: pointer; color: var(--on-wall);
}
.close svg, .close-ink svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.close:hover { border-color: var(--brass); }
body:not(.is-curator) .curator-only { display: none; }

/* ---------- Dialoghi su carta (curatore) ---------- */
.paper-dialog {
  width: min(980px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: 2px;
  background: var(--paper); box-shadow: 0 40px 80px -30px #000;
}
.paper-sm { width: min(440px, 94vw); }
.paper-head { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 1.75rem .5rem; }
.paper-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; }
.close-ink { position: static; color: var(--ink); border-color: #1d1a1533; background: none; }
.paper-foot { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.75rem 1.5rem; border-top: 1px solid #1d1a151f; }
.editor-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.75rem; padding: 1rem 1.75rem 1.25rem; }
.editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.editor-fields label, .login-body label { display: grid; gap: .35rem; font-size: .82rem; color: var(--ink-soft); }
.editor-fields .wide { grid-column: 1 / -1; }
.editor-fields input:not([type=radio]), .editor-fields textarea, .login-body input {
  border: 1px solid #1d1a1533; background: #fffdf7; border-radius: 2px; padding: .6rem .75rem; font-size: 1rem; color: var(--ink);
}
.editor-fields textarea { font-family: var(--serif); font-style: italic; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
legend { font-size: .82rem; color: var(--ink-soft); margin-bottom: .4rem; padding: 0; }
.pill {
  display: inline-flex !important; align-items: center; cursor: pointer;
  border: 1px solid #1d1a1533; border-radius: 999px; padding: .38rem .85rem; font-size: .9rem !important; color: var(--ink) !important;
}
.pill input { position: absolute; opacity: 0; }
.pill:has(input:checked) { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }
.pill:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.rating { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: .3rem; }
.rating legend { width: 100%; }
.rating input { position: absolute; opacity: 0; }
.rating label {
  display: block !important; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 1.5px solid var(--brass); cursor: pointer;
}
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { background: var(--brass); }
.rating input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.editor-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.drop { position: relative; display: grid; gap: .4rem; font-size: .82rem; color: var(--ink-soft); cursor: pointer; }
.drop img, .drop .drop-hint {
  width: 100%; aspect-ratio: 720 / 860; object-fit: cover; border: 8px solid var(--frame); background: var(--paper-2);
}
.drop .drop-hint { display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--ink-soft); border-style: solid; border-color: #1d1a1540; border-width: 1px; }
.drop img:not([src]), .drop img[src=""] { display: none; }
.drop img[src]:not([src=""]) + .drop-hint { display: none; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form-error { margin: 0; padding: 0 1.75rem; min-height: 1.2em; color: var(--danger); font-size: .9rem; }
.login-body { padding: .5rem 1.75rem 1rem; display: grid; gap: .9rem; }
.login-body p:first-child { margin: 0; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Schermi piccoli ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-work { order: -1; }
  .room-view-inner { grid-template-columns: 1fr; padding-top: 4rem; }
  .editor-body { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .rooms { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .work .frame { border-width: 6px; padding: 9px; }
  .work .frame .back { inset: 9px; width: calc(100% - 18px); }
  .work .plaque { padding: .6rem .7rem; }
  .facts { grid-template-columns: 1fr; }
  .tools select { flex: 1 1 45%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .spotlight { opacity: 1; }
}

/* ---------- Museo visitabile ---------- */
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
body.museum-open { overflow: hidden; }
.museum {
  --mu-glass: #140e0bcc; --mu-line: #e8d6ae33; --mu-gold: #d4ac5c; --mu-cream: #f3ead8;
  position: fixed; inset: 0; z-index: 50; background: #120d0a; color: var(--mu-cream);
}
.mu-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.mu-canvas:active { cursor: grabbing; }

.mu-top {
  position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 1.1rem var(--pad) 2.5rem; background: linear-gradient(#120d0ae6, #120d0a00); pointer-events: none;
}
.mu-top > * { pointer-events: auto; }
.mu-place { pointer-events: none; }
.mu-title { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: .01em; line-height: 1.1; }
.mu-sub { margin: .2rem 0 0; font-family: var(--serif); font-style: italic; font-size: .95rem; color: #e8dcc2b3; }
.mu-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.mu-btn {
  font: 500 .85rem var(--sans); color: var(--mu-cream); background: var(--mu-glass); border: 1px solid var(--mu-line);
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer; backdrop-filter: blur(8px); white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.mu-btn:hover { border-color: var(--mu-gold); }
.mu-btn:focus-visible, .mu-arrow:focus-visible, .mu-card-close:focus-visible { outline: 2px solid var(--mu-gold); outline-offset: 2px; }
.mu-tour[aria-pressed="true"] { background: var(--mu-gold); color: #1d140c; border-color: var(--mu-gold); }
.mu-btn-gold { background: var(--mu-gold); color: #1d140c; border-color: var(--mu-gold); font-weight: 600; }
.mu-btn-gold:hover { background: #e2bd70; }

/* pianta */
.mu-mapbox {
  position: absolute; left: var(--pad); bottom: 1.25rem; margin: 0; padding: .55rem .55rem .4rem;
  background: var(--mu-glass); border: 1px solid var(--mu-line); border-radius: 6px; backdrop-filter: blur(8px);
}
.mu-map { display: block; width: 170px; height: 200px; cursor: pointer; }
.mu-mapbox figcaption { margin-top: .3rem; font-size: .7rem; color: #e8dcc28c; text-align: center; }

/* cartiglio del cambio sala */
.mu-toast {
  position: absolute; left: 50%; top: 22%; transform: translate(-50%, 8px); text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .5s, transform .5s; text-shadow: 0 2px 18px #000c;
}
.mu-toast.on { opacity: 1; transform: translate(-50%, 0); }
.mu-toast strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; }
.mu-toast span { display: block; margin-top: .45rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #f1e2c1; }

.mu-help {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translate(-50%, 12px); max-width: 30rem; width: calc(100vw - 2 * var(--pad));
  padding: .9rem 1.15rem; font-size: .88rem; line-height: 1.5; background: var(--mu-glass); border: 1px solid var(--mu-line);
  border-radius: 6px; color: #eadfc8d9; backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .6s, transform .6s;
}
.mu-help.on { opacity: 1; transform: translate(-50%, 0); }
.mu-help p { margin: 0; }
.mu-help strong { display: block; color: var(--mu-cream); font-family: var(--serif); font-weight: 500; font-size: 1.1rem; margin-bottom: .25rem; }

/* cartellino della maglia */
.mu-card {
  position: absolute; right: var(--pad); bottom: 1.25rem; width: min(23rem, calc(100vw - 2 * var(--pad)));
  background: #efe6d3; color: #1d1a15; padding: 1.2rem 1.3rem 1rem; border-radius: 3px;
  box-shadow: 0 20px 50px #0009, inset 0 0 0 1px #b08d5755, inset 0 0 0 6px #efe6d3, inset 0 0 0 7px #b08d5740;
  animation: mu-card-in .35s ease-out;
}
@keyframes mu-card-in { from { opacity: 0; transform: translateY(10px); } }
.mu-card-inv { margin: 0; font-family: var(--serif); font-style: italic; font-size: .85rem; color: #8a6a3a; }
.mu-card-title { margin: .15rem 0 .2rem; font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.1; padding-right: 1.5rem; }
.mu-card-meta { margin: 0; font-size: .85rem; color: #5e574a; }
.mu-card-pips { margin: .55rem 0 0; display: flex; gap: .25rem; }
.mu-card-pips i { width: .55rem; height: .55rem; border-radius: 50%; border: 1px solid #8a6a3a; }
.mu-card-pips i.on { background: #8a6a3a; }
.mu-card-note { margin: .6rem 0 0; font-family: var(--serif); font-size: .95rem; line-height: 1.45; color: #3a342b; }
.mu-card-note:empty { display: none; }
.mu-card footer { display: flex; align-items: center; gap: .35rem; margin-top: .9rem; padding-top: .75rem; border-top: 1px solid #b08d5740; }
.mu-card-pos { font-size: .78rem; color: #6d6455; min-width: 4.5rem; text-align: center; }
.mu-card-open { margin-left: auto; }
.mu-arrow, .mu-card-close {
  width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid #b08d5766;
  background: transparent; color: #1d1a15; cursor: pointer;
}
.mu-arrow:hover { background: #e2d6bd; }
.mu-arrow svg, .mu-card-close svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mu-card-close { position: absolute; top: .7rem; right: .7rem; border: 0; }

.mu-veil { position: absolute; inset: 0; background: #120d0a; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mu-veil.on { opacity: 1; }

@media (max-width: 700px) {
  .mu-top { flex-direction: column; gap: .6rem; }
  .mu-map { width: 115px; }
  .mu-mapbox figcaption { display: none; }
  .mu-help { bottom: auto; top: 9rem; }
  .mu-card { left: var(--pad); right: var(--pad); width: auto; bottom: .75rem; }
  .mu-card-note { display: none; }
  .museum:has(.mu-card:not([hidden])) .mu-mapbox { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mu-toast, .mu-help, .mu-veil { transition: none; }
  .mu-card { animation: none; }
}
