/* MiMi Pic Konstruktor (CC #25535) — what a constructor adds to the studio product card (studio.css): the live poster in the
 * stage's edit view, the caption, the mark, and the picture-step controls. Tokens from shop.css. */
@font-face { font-family: 'Gloock'; src: url('fonts/gloock.woff2') format('woff2'); font-display: swap; }
.mpk-poster { position: absolute; inset: 0; overflow: hidden; border-radius: 3px; display: flex; flex-direction: column; color: var(--ink-p); }
.mpk-poster::before { content: ""; position: absolute; inset: 0; background: #efe1c9 url(/img/studio/ply-face.jpg) center / cover; opacity: 0; transition: opacity .3s; }
.mpk-poster.is-wood::before { opacity: 1; }
.mpk-art { position: relative; flex: 1; margin: var(--pad); overflow: hidden; }
.mpk-art .mpk-map { position: absolute; inset: 0; }   /* beats maplibre-gl.css .maplibregl-map{position:relative}, which loads later */
.mpk-poster.l-circle .mpk-art { flex: none; aspect-ratio: 1; border-radius: 50%; align-self: center; width: calc(100% - 2 * var(--pad) - 8%); margin-top: calc(var(--pad) * 2.2); }
.mpk-poster.l-full .mpk-art { margin: 0; }
.mpk-poster.l-full .mpk-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16% 8% 7%; background: linear-gradient(transparent, var(--bgc) 55%); }
.mpk-cap { position: relative; z-index: 2; text-align: center; padding: 4% 8% 6%; }
.mpk-t { font-family: var(--display); font-size: calc(var(--bw) * .085); letter-spacing: .24em; text-transform: uppercase; line-height: 1.05; font-weight: 600; word-break: break-word; }
.is-serif .mpk-t { font-family: 'Gloock', Georgia, serif; letter-spacing: .04em; text-transform: none; font-weight: 400; font-size: calc(var(--bw) * .1); }
.mpk-rule { width: 12%; height: 1px; background: currentColor; opacity: .55; margin: 3.2% auto; }
.mpk-s { font-size: calc(var(--bw) * .036); letter-spacing: .08em; }
.mpk-c { font-size: calc(var(--bw) * .026); letter-spacing: .2em; opacity: .6; margin-top: 2%; font-variant-numeric: tabular-nums; }
.mpk-osm { position: absolute; right: 6px; bottom: 4px; z-index: 3; font-size: 7px; opacity: .45; }
.mpk-studio .maplibregl-ctrl-attrib, .mpk-studio .maplibregl-ctrl-logo { display: none !important; }
.mpk-mk { width: var(--mks); height: var(--mks); filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); cursor: grab; }
.mpk-mk svg { width: 100%; height: 100%; display: block; }
.mpk-studio .mpk-in { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 14px; font: 500 16px var(--font); color: var(--ink); outline: none; }
.mpk-studio .mpk-in:focus { border-color: var(--ink); }
.mpk-studio .mpk-in + .mpk-in { margin-top: 8px; }
.mpk-search { position: relative; }
.mpk-sugg { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); z-index: 20; overflow: hidden; }
.mpk-sugg button { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: #fff; padding: 11px 14px; font: 500 14px var(--font); cursor: pointer; }
.mpk-sugg button:first-child { border-top: 0; }
.mpk-sugg small { display: block; color: var(--ink-3); font-weight: 400; }
.mpk-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mpk-quick button { border: 1px solid var(--line); background: var(--paper); border-radius: var(--pill); padding: 7px 11px; font: 500 13px var(--font); cursor: pointer; color: var(--ink); }
.mpk-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mpk-sw { border: 2px solid transparent; border-radius: 14px; padding: 0; background: none; cursor: pointer; font: 600 12px var(--font); color: var(--ink-2); }
.mpk-sw i { display: block; aspect-ratio: 3/4; border-radius: 10px; margin-bottom: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.mpk-sw i svg { width: 100%; height: 100%; display: block; }
.mpk-sw.on { border-color: var(--ink); }
.mpk-seg { display: flex; background: var(--paper); border-radius: var(--pill); padding: 4px; gap: 4px; }
.mpk-seg button { flex: 1; border: 0; background: none; border-radius: var(--pill); padding: 9px 6px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.mpk-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mpk-row { display: flex; gap: 10px; margin-top: 10px; } .mpk-row > * { flex: 1; }
.mpk-icons { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.mpk-icons button { min-width: 0; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 9px; color: var(--ink); }
.mpk-icons button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mpk-icons svg { width: 100%; height: 100%; }
.mpk-small { font-size: 12px; color: var(--ink-3); line-height: 1.4; margin: 8px 0 0; }

/* the live poster: always laid out at the variant's aspect (the board's face is drawn from it), shown in the edit view */
.mpk-live { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 66px; visibility: hidden; z-index: 1; }
.st-stage[data-view="edit"] .mpk-live { visibility: visible; }
.mpk-studio .st-stage[data-view="edit"] { background: radial-gradient(120% 90% at 50% 20%, #fbf8f3 0%, #efe8de 55%, #e3d9cb 100%); cursor: default; }
.mpk-studio .st-stage[data-view="edit"] .st-hint { color: var(--ink-2); }
.mpk-board { position: relative; border-radius: 2px; box-shadow: 0 30px 50px -22px rgba(40,30,20,.55), 0 8px 16px -8px rgba(40,30,20,.35); }
.mpk-studio #st-edit { display: none !important; }
.mpk-studio .mpk-in { margin-top: 6px; }
.mpk-studio .mpk-styles { margin-top: 4px; }
.mpk-studio .mpk-row { margin-top: 10px; }
.mpk-link { border: 0; background: none; padding: 8px 0 0; font: 600 14px var(--font); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mpk-studio .st-step { margin-top: 22px; }
