/* On the move (moves.js), redesigned to the VMoves board: the pin follows the
   driver. Paste-up: Jakarta only, ink buttons, green only on status dots,
   focus and the one primary action, no dividers.

   The first block is shared with the claim for a place that moves, which
   draws on All your places, so it is not scoped to the page. */

/* ── The area editor: the map on a sheet of paper, the sizes stamped under it ── */
/* Not tilted like the rest of the paper: a turned map drags at an angle to the hand. */
.mv-mapcard { --tilt: 0deg; padding: 14px 14px 16px; }
/* Two classes deep on the map: mapbox-gl.css is loaded on demand, after this
   file, and its `.mapboxgl-map { position: relative }` used to win, leaving
   the map 0px tall inside its frame: no tiles, only the crosshair. */
.mv-area { position: relative; overflow: hidden; aspect-ratio: 1.3; border-radius: 2px; background: #E8DEC8; }
.mv-area .mv-map { position: absolute; inset: 0; }
/* The console's gesture: the ground moves, the centre stays. */
.mv-crosshair { position: absolute; left: 50%; top: 50%; z-index: 2; width: 24px; height: 24px; margin: -12px 0 0 -12px; pointer-events: none; }
.mv-crosshair::before,
.mv-crosshair::after { content: ''; position: absolute; background: #1D1F22; border-radius: 1px; box-shadow: 0 0 0 1.5px rgba(251,248,241,.7); }
.mv-crosshair::before { left: 11px; top: 0; bottom: 0; width: 2px; }
.mv-crosshair::after { top: 11px; left: 0; right: 0; height: 2px; }
.mv-tag { position: absolute; left: 50%; top: 12%; z-index: 2; translate: -50% 0; max-width: calc(100% - 40px); padding: 7px 12px 8px; border-radius: 3px; background: #FBF6EA; color: #1D1F22; font-size: 15px; font-weight: 750; line-height: 1.25; text-align: center; rotate: 2deg; box-shadow: 0 1px .5px rgba(70,50,20,.22), 0 8px 14px -8px rgba(50,34,12,.45); pointer-events: none; }
.mv-map-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #47443E; font-size: 16px; }
.mv-sizes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mv-size { flex: 0 1 auto; display: grid; justify-items: start; align-content: start; gap: 3px; min-width: 0; padding: 12px 14px 13px; border: 0; border-radius: 6px 8px 5px 7px; background: transparent; box-shadow: inset 0 0 0 2px rgba(29,31,34,.28); color: #47443E; font: inherit; text-align: left; cursor: pointer; rotate: -.8deg; transition: rotate 200ms var(--ease-out, ease), background-color 200ms ease; }
.mv-size:nth-child(2n) { rotate: .9deg; }
.mv-size b { font-size: 16px; font-weight: 750; line-height: 1.2; color: #1D1F22; }
.mv-size span { font-size: 15px; font-variant-numeric: tabular-nums; }
.mv-size:hover { background: rgba(230,203,90,.18); }
.mv-size[aria-pressed="true"] { box-shadow: inset 0 0 0 3px #1D1F22; background: rgba(230,203,90,.45); rotate: 0deg; }
.mv-size[aria-pressed="true"] b { text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 5px; }
.mv-area-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-top: 14px; padding: 0 4px; }
.mv-area-hint { margin: 0; font-size: 15.5px; line-height: 1.45; color: #47443E; }
.mv-area-foot .d-map-credit { margin: 0; font-size: 15px; color: #67625A; }

/* The 30-minute rule, a switch on a slip */
.mv-rule { padding: 20px 22px 22px; --tilt: 1.2deg; }
.mv-rule .k { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.mv-rule-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; margin-top: 10px; cursor: pointer; }
.mv-rule-row span { font-size: 17px; font-weight: 650; line-height: 1.4; color: var(--ink); }
.mv-rule-row .switch { margin-top: 2px; }
.mv-rule .why { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink2); }

/* Fields: a dashed rule to write on, its name above */
.mv-field { display: grid; gap: 6px; min-width: 0; }
.mv-lbl { font-size: 16px; font-weight: 700; color: var(--ink); }
.mv-f { width: 100%; min-width: 0; min-height: 46px; padding: 10px 2px; border: 0; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 48%, transparent); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; }
textarea.mv-f { resize: none; line-height: 1.45; }
.mv-f::placeholder { color: var(--ink3); font-weight: 500; opacity: 1; }
.mv-f:focus-visible { outline: none; border-bottom: 2px solid var(--accent); }
.mv-hint { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.mv-notice { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.4; color: var(--ink); }
.mv-notice:empty { display: none; }
.mv-sheet { position: relative; padding: clamp(20px, 2.4vw, 32px); border-radius: 14px; background: var(--sheet); box-shadow: var(--shadow); }

/* The way in under the claim search, and what it opens into (All your places) */
.mv-entry { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; text-align: left; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; }
.mv-entry svg.i, .mv-claim svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mv-entry:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.mv-entry[hidden], .mv-claim[hidden] { display: none; }
.mv-claim { margin-top: 18px; }
.mv-claim-card { display: grid; gap: 20px; }
.mv-claim-h { margin: -10px 0 0; font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--ink); }
.mv-claim-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }

/* ── The page ─────────────────────────────────────────────────────────────── */
.d-dash.mv2 > * + * { margin-top: 0; }
.d-dash.mv2 > .xsec { margin-top: clamp(96px, 9vw, 148px); }
.d-dash.mv2 > .mv-off-card { margin-top: clamp(72px, 7vw, 112px); }
.mv2 [hidden] { display: none !important; }
.mv2 svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mv2 .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mv2 .btn { font-size: 16px; }
.mv2 .btn.sm { --bh: 40px; padding: 0 16px; font-size: 16px; }
.mv2 .btn.lg { --bh: 56px; padding: 0 28px; }
.mv2 .btn svg.i { width: 18px; height: 18px; }
.mv2 :is(button, input, textarea, a):focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.mv2 .xsec-head .lede { color: var(--ink2); }
.mv2 .xsec { scroll-margin-top: 90px; }

/* The headline, the ways in, and the pin on the route */
.mv-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(32px, 4vw, 72px); align-items: start; padding-top: clamp(4px, 1.6vw, 24px); }
.mv-head { grid-column: 1 / -1; }
.mv-head .xh1 { max-width: 14.5em; }
.mv-side .xline { margin-top: 0; }
.mv-wait { grid-column: 1 / -1; }
.mv-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 40px; }
.mv-way { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 18px 18px 20px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; --tilt: -1deg; transition: translate 200ms var(--ease-out, ease); }
.mv-way:nth-child(2) { --tilt: .9deg; }
.mv-way:not(.is-held):hover { translate: 0 -3px; }
.mv-way.is-held { cursor: default; }
.mv-way .k { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.mv-way b { font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.mv-way p { margin: 0; font-size: 15.5px; line-height: 1.4; color: var(--ink2); }
.mv-way .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 16px; font-weight: 700; }
.mv-way .go svg.i { width: 17px; height: 17px; }
.mv-plan { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 16px; line-height: 1.4; color: var(--ink2); }
.mv-plan svg.i { color: var(--ink); }
.mv-plan + .mv-parent-go { margin-top: 16px; }

.mv-stage { position: relative; min-height: 560px; overflow-x: clip; }
.mv-art { position: absolute; right: 1%; top: 0; width: 86%; aspect-ratio: 1; object-fit: contain; rotate: 2deg; filter: drop-shadow(0 18px 24px rgba(40,28,10,.3)); }
.mv-stage .xmarker { left: 30%; top: 16%; }
.mv-stage .xmarker .tile { box-shadow: 0 0 0 3px #fff, 0 14px 22px -10px rgba(0,0,0,.55); }
.mv-stage .ink.trail { left: 2%; top: 30%; width: 300px; height: 220px; z-index: 3; --sw: 3; }
/* Two classes: paper.css loads after this file, and its .cut is position: relative. */
.mv-stage .mv-live { position: absolute; left: 0; bottom: 6%; z-index: 4; width: min(340px, 64%); padding: 18px 20px 20px; --tilt: -2deg; }
.mv-stage .mv-live .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.mv-live .top small { font-size: 15px; color: var(--ink2); }
.mv-live b { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.mv-live b .sdot { width: 11px; height: 11px; }
.mv-live p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.4; color: var(--ink2); }
.mv-live-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.mv-live-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; }
.mv-live-list li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-live-list small { font-size: 15px; font-weight: 500; color: var(--ink2); }

/* Carts: the add card, and a ticket for each */
.mv-carts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; align-items: stretch; }
.mv-add { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; min-height: 300px; padding: 26px; border: 0; border-radius: 12px; outline: 2px dashed var(--ink2); outline-offset: -2px; background: color-mix(in srgb, var(--sheet) 55%, transparent); color: var(--ink); font: inherit; text-align: left; cursor: pointer; rotate: -.6deg; }
.mv-add:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.mv-add .plus { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; background: var(--ink); color: var(--ground); transition: rotate 240ms var(--ease-out, ease); }
.mv-add:hover .plus { rotate: 90deg; }
.mv-add b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.mv-add p { margin: 0; max-width: 22em; font-size: 16px; line-height: 1.45; color: var(--ink2); }
.mv-add .room { margin-top: auto; font-size: 15px; font-weight: 650; color: var(--ink2); }

/* A ticket is printed card stock: light in either theme, its own ink. The
   notches and the perforation sit at --cut, under the name. */
.mv-ticket { color-scheme: light; --ink: #1D1F22; --ink2: #47443E; --ink3: #67625A; --ground: #FBF8F1; --sheet: var(--tc, #F7F0E0); --cut: 132px;
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; min-height: 300px; padding: 22px 24px; color: var(--ink); rotate: var(--tilt, 1deg); filter: drop-shadow(0 1px .5px rgba(70,50,20,.18)) drop-shadow(0 12px 12px rgba(50,34,12,.14)); }
.mv-ticket::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 5px; background: var(--tc, #F7F0E0);
  -webkit-mask: radial-gradient(circle 11px at 0 var(--cut), #0000 96%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--cut), #0000 96%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 var(--cut), #0000 96%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--cut), #0000 96%, #000) 100% 0 / 51% 100% no-repeat; }
.mv-ticket::after { content: ''; position: absolute; left: 18px; right: 18px; top: var(--cut); border-top: 2px dashed rgba(29,31,34,.28); }
.mv-cart:nth-child(2) { --tilt: -.8deg; }
.mv-cart:nth-child(3) { --tilt: .6deg; }
.mv-ghost { opacity: .8; }
.mv-ticket-top { position: relative; min-height: calc(var(--cut) - 40px); }
.mv-cart .mv-ticket-top { padding-right: 68px; }
.mv-ticket .k { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(29,31,34,.72); }
.mv-ticket-top b { display: block; margin-top: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.mv-cart-name { display: -webkit-box !important; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 22px !important; overflow-wrap: anywhere; }
.mv-thumb { position: absolute; right: 0; top: -2px; width: 56px; height: 56px; border-radius: 4px; object-fit: cover; rotate: 3deg; box-shadow: 0 0 0 3px #FBF8F1, 0 6px 10px -6px rgba(0,0,0,.45); }
.mv-thumb.is-empty { display: grid; place-items: center; background: #E8DEC8; color: #67625A; }
.mv-ticket-facts { display: grid; gap: 12px; margin: 38px 0 0; padding: 0; list-style: none; }
.mv-ghost .mv-ticket-facts { margin-top: auto; padding-top: 38px; }
.mv-ticket-facts li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: rgba(29,31,34,.86); }
.mv-ticket-facts li svg.i { width: 18px; height: 18px; }
.mv-cart-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.mv-cart-ask { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }
.mv-ask-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.mv-off-q { margin: 0; font-size: 17px; font-weight: 750; line-height: 1.35; color: var(--ink); }
.mv-carts-card > .mv-notice { margin-top: 18px; }
.mv-fine { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 34px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink2); }
.mv-fine img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 3px; rotate: -3deg; }

/* A new cart: its name and the rule beside the map */
.mv-cart-form { margin-top: 34px; scroll-margin-top: 90px; }
.mv-form-head h3 { margin: 10px 0 0; font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.mv-cart-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px clamp(24px, 3vw, 48px); align-items: start; margin-top: 24px; }
.mv-cart-left { display: grid; gap: 22px; }
.mv-form-acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* Where it sells: the map, and the rule beside it */
.mv-where { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.mv-panel { display: grid; gap: 26px; padding-top: 6px; }
.mv-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.mv-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 16.5px; line-height: 1.45; color: var(--ink2); }
.mv-list li svg.i { margin-top: 2px; color: var(--ink); }
.mv-panel .btn.lg { justify-self: start; }

/* Who drives it: a name slip each, and the box to add one */
.mv-crew { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px 22px; }
.mv-driver { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; width: min(300px, 100%); padding: 18px 18px 16px; }
.mv-face { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #1D1F22; color: #FBF8F1; font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.mv-driver-name { display: grid; min-width: 0; }
.mv-driver-name b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.mv-driver-name small { font-size: 15px; color: var(--ink2); overflow-wrap: anywhere; }
.mv-driver .mv-driver-remove { grid-column: 2; justify-self: start; margin-top: 6px; }
.mv-driver-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 16px; flex: 1 1 360px; max-width: 580px; }
.mv-driver-add .mv-hint { grid-column: 1 / -1; }
.mv-drivers-card > .mv-notice { margin-top: 18px; }

/* A cart's own page: how it shows */
.mv-shows { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.mv-photo { display: grid; gap: 14px; padding: 14px 14px 18px; --tilt: -1.2deg; }
.mv-photo-frame { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: #E8DEC8; }
.mv-photo-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mv-photo-img.is-empty { display: grid; place-items: center; color: #67625A; }
.mv-photo-img.is-empty svg.i { width: 34px; height: 34px; }
.mv-photo-cap { margin: 0 4px; font-size: 16px; font-weight: 650; color: var(--ink); }
.mv-photo-acts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 4px; }
/* The file box stays in the label, out of sight but still reached by Tab. */
.mv-photo-pick { position: relative; cursor: pointer; }
.mv-photo-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mv-photo-pick:focus-within { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.mv-photo.is-busy .mv-photo-acts { opacity: .5; pointer-events: none; }
.mv-shows-fields { display: grid; gap: 22px; }
.mv-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px 24px; }
.mv-shows-save { justify-self: start; }

/* A cart's stock: Your listing's menu slip on the cart's pin (listing.css
   draws it), with the place's menu to start from on a coupon under the sheet. */
.mv-stock-foot { display: grid; justify-items: start; gap: 10px; max-width: 400px; margin-top: 40px; padding: 26px 24px 22px; --tilt: -1deg; }
.mv-stock-foot .kick { color: #47443E; }
.mv-stock-foot .mv-hint { margin: 0; color: #47443E; }
.mv-stock-foot .btn { margin-top: 6px; background: #1D1F22; color: #FBF8F1; }
.mv-stock-foot .mv-notice:empty { display: none; }
/* A switch that is on is ink, as the board draws it: green is kept for status
   and the one primary action. */
.mv2 input[type="checkbox"].switch:not(.sr):checked { background: var(--ink); }
.mv2 input[type="checkbox"].switch:not(.sr):checked::after { background: var(--ground); }

/* Make it fixed again: quiet, at the foot */
.mv-off-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 40px; max-width: 1040px; }
.mv-off-line { margin: 14px 0 0; max-width: 34em; font-size: 19px; font-weight: 650; line-height: 1.4; color: var(--ink); }
.mv-off-text .mv-hint { margin-top: 8px; }
.mv-off-acts { display: grid; justify-items: start; gap: 12px; }

@media (max-width: 1100px) {
  .mv-where, .mv-cart-grid, .mv-shows { grid-template-columns: minmax(0, 1fr); }
  .mv-carts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-shows .mv-photo { max-width: 420px; }
}
@media (max-width: 900px) {
  .mv-hero { grid-template-columns: minmax(0, 1fr); }
  .mv-stage { width: 100%; max-width: 560px; min-height: 0; aspect-ratio: 1 / .94; margin: 12px auto 0; }
}
/* Phones: one column, 16px from the edge, nothing sideways */
@media (max-width: 760px) {
  .mv2 .xh1 { font-size: clamp(34px, 10vw, 42px); }
  .mv-ways { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 30px; }
  /* Taller than wide, so the card sits under the print rather than over the pin. */
  .mv-stage { aspect-ratio: 1 / 1.32; }
  .mv-art { width: 84%; right: 0; }
  .mv-stage .xmarker { top: 11%; left: 30%; }
  .mv-stage .ink.trail { top: 22%; width: 200px; height: 147px; }
  .mv-stage .mv-live { width: min(330px, 84%); bottom: 0; }
  .mv-carts { grid-template-columns: minmax(0, 1fr); }
  .mv-add { min-height: 230px; }
  .mv-ticket { min-height: 0; }
  .mv-ghost { min-height: 270px; }
  .mv-mapcard { padding: 10px 10px 14px; }
  .mv-area { aspect-ratio: 1; }
  .mv-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-claim-fields, .mv-off-in { grid-template-columns: minmax(0, 1fr); }
  .mv-driver { width: 100%; }
  .mv-driver-add { flex-basis: 100%; grid-template-columns: minmax(0, 1fr); }
  .mv-driver-go { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-way, .mv-add .plus, .mv-size { transition: none; }
  .mv-way:not(.is-held):hover { translate: none; }
  .mv-add:hover .plus { rotate: none; }
}
