/* Map hoodie (inc/map-hoodie.php + assets/js/map-hoodie.js). Loads after
   our-song.css, which gives the shared frame: photo stage, steps, bar, sheet. */

/* the design frame on the hoodie: 290 x 275.5 mm in px (1 px = 1 mm), placed by map-hoodie.js */
.mh-card { position: absolute; left: 0; top: 0; width: 290px; height: 275.5px; transform-origin: 0 0; color: var(--ink, #fff); }
.mh-card.is-loading .mh-map { opacity: .35; }
.mh-map { position: absolute; top: 0; transition: opacity .2s; }
.mh-map .mh-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mh-row { position: absolute; left: 0; width: 290px; text-align: center; white-space: nowrap; font-kerning: normal; font-feature-settings: "calt" 0; font-synthesis: none; }
.mh-row[dir="rtl"] { unicode-bidi: plaintext; }
.mh-meas { position: absolute; left: -9999px; top: 0; font-size: 100px; line-height: 1; white-space: pre; visibility: hidden; pointer-events: none; font-kerning: normal; font-feature-settings: "calt" 0; font-synthesis: none; }

/* step 1: search + results + the flat map to fine-tune the pin */
.mh-find { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.mh-findbtn { height: 60px; padding: 0 22px; border-radius: 18px; border: 0; background: var(--skrnd-ink); color: var(--skrnd-bg) !important; font-size: 17px; font-weight: 900; cursor: pointer; }
.mh-res .c { display: grid; place-items: center; background: var(--os-stage); }
.mh-res .c svg { width: 26px; height: 26px; fill: none; stroke: var(--skrnd-ink); stroke-width: 2; }
.mh-res[aria-disabled="true"] { opacity: .55; }
.mh-pad-wrap { margin-top: 18px; }
.mh-pad { position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; border: 2px solid var(--os-line); cursor: crosshair; touch-action: manipulation; }
.mh-pad .mh-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mh-pad-shape { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mh-pad-shape path { fill: none; stroke: var(--skrnd-cta); stroke-width: 6; stroke-dasharray: 18 14; opacity: .7; }
.mh-tap { margin: 8px 0 10px; }
.mh-pad-box { position: relative; width: min(100%, 360px); }
/* zoom magnifiers on the map (owner, 2026-10-09) */
.mh-zoomctl { position: absolute; top: 10px; right: 10px; display: grid; gap: 8px; }
.mh-zoomctl button { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--os-line); background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(0,0,0,.12); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mh-zoomctl button[disabled] { opacity: .4; cursor: default; }
.mh-zoomctl svg { width: 24px; height: 24px; fill: none; stroke: var(--skrnd-ink); stroke-width: 2.2; stroke-linecap: round; }
.mh-attrib { position: absolute; left: 8px; bottom: 6px; font-size: 10px; line-height: 1; color: rgba(0,0,0,.5); pointer-events: none; }
.mh-nosug { margin: 4px 0 0; font-size: 15px; }

/* step 2: look */
.mh-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.mh-style { padding: 10px 6px 12px; font-size: 15px; gap: 8px; }
.mh-style .img { width: 100%; max-width: 130px; display: block; padding: 8%; border-radius: 14px; box-sizing: border-box; }
.mh-style .img .mh-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mh-shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; max-width: 480px; }

/* step 3: words */
.mh-titles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mh-chip { min-height: 44px; padding: 8px 14px; border-radius: 99px; border: 2px solid var(--os-line); background: var(--os-card); font-size: 15px; font-weight: 800; cursor: pointer; unicode-bidi: plaintext; }
.mh-chip[aria-pressed="true"] { background: var(--skrnd-ink); color: var(--skrnd-bg); border-color: var(--skrnd-ink); }
.mh-input { width: 100%; height: 56px; border-radius: 16px; border: 2px solid var(--os-line); background: var(--os-card); padding: 0 16px; font-size: 18px; font-weight: 700; unicode-bidi: plaintext; }
.mh-input:focus { border-color: var(--skrnd-ink); outline: none; }
#mh-title { margin-bottom: 14px; }
.mh-field { display: block; margin: 14px 0 0; }
.mh-field .os-lab { display: block; margin-bottom: 8px; }
.mh-field .os-lab i { font-style: normal; font-weight: 700; letter-spacing: 0; text-transform: none; }
.mh-small { margin: 6px 0 0; font-size: 14px; }
.mh-check { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 18px 0 4px; font-size: 17px; font-weight: 800; cursor: pointer; }
.mh-check input { width: 24px; height: 24px; accent-color: var(--skrnd-ink); }
.mh-check span { flex-basis: 100%; padding-left: 34px; color: var(--skrnd-muted); font-size: 14px; font-weight: 600; }

/* Simple / Game maps keep their own colours on every hoodie: no multiply, no fold mask */
.os-photo.is-colour .os-ink { mix-blend-mode: normal; -webkit-mask: none; mask: none; }
/* no blue focus ring on the text fields (owner, 2026-10-09): the field's own black border shows focus */
.mh-app input:focus-visible, .mh-app label:focus-within { outline: none; }

/* Desktop at the size the owner liked at 90% browser zoom (2026-10-09): the photo 10%
   smaller and the questions + bottom bar drawn at 90%, so photo, steps and button fit on
   a laptop screen. The text-measuring span lives outside the panel, so print sizes
   are unaffected; tap positions use viewport coordinates on both sides. */
@media (min-width: 900px) {
  /* never taller than the window minus header, breadcrumb and the bottom bar: the whole
     hoodie shows above "Add to cart" on short laptop screens too (owner, 2026-10-09) */
  .mh-app .os-photo { width: min(100%, 486px, calc((100vh - var(--skrnd-header-h, 68px) - 190px) * .8)); min-width: 300px; }
  .mh-app .os-panel, .mh-app .os-bar { zoom: .9; }
}
