/*
 * Theme "garden": body map «کجای بدنتان درد دارد؟» (approved v11, design/approved/02-home
 * spec sections 16.2 to 20; markup in components/bodymap.html, behaviour in bodymap.js).
 * Rules copied from the approved desktop.html; the mockup's ".m" (mobile board) rules are the
 * max-width 767px block at the end. Loaded on the home page only.
 */
.g-map{position:absolute;left:0;bottom:36px;width:360px;background:#FFFFFF;border-radius:28px;padding:24px 24px 18px;box-shadow:0 30px 60px -30px color-mix(in srgb, var(--p-ink) 33%, transparent)}
.g-map h2{font-weight:300;font-size:24px;margin:0 0 4px}
.g-map p{margin:0 0 10px;font-size:13px;color:var(--p-muted)}
.g-map h2{font-weight:600;font-stretch:100%;line-height:1.6}
.g-map h2{font-size:22px}
.g-map p{font-size:14px}
.bm9{width:404px;padding:22px 22px 16px}
.bm9 h2{margin-bottom:2px}
.bm9-stagewrap{position:relative;margin:8px 0 0}
.bm9-stage{position:relative;height:400px;border-radius:22px;overflow:hidden;background:radial-gradient(70% 55% at 50% 42%,#FFFFFF 0%,var(--p-deep-text) 62%,var(--p-bg-lo) 100%);touch-action:pan-y;user-select:none;-webkit-user-select:none;perspective:900px}
.bm9-stage,.bm9-stage *{-webkit-tap-highlight-color:transparent}
.bm9-stage svg,.bm9-stage g,.bm9-stage ellipse{outline:none}
.bm9-stage.zoomed{touch-action:none;cursor:grab}
.bm9-stage.dragging{cursor:grabbing}
.bm9-vp{position:absolute;inset:0;transform-origin:50% 50%;will-change:transform}
.bm9-flip{position:absolute;inset:56px 0 10px;transform-style:preserve-3d;transition:transform .75s cubic-bezier(.22,.8,.24,1)}
.bm9-flip.drag{transition:none}
.bm9-face{position:absolute;inset:0;width:100%;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:visible}
.bm9-b{transform:rotateY(180deg)}
.bm9-flip:not(.back) .bm9-b,.bm9-flip.back .bm9-f{pointer-events:none}
.bm9 .shadow{fill:var(--p-ink);opacity:.08}
.bm9 .rim{fill:none;stroke:var(--p-action);stroke-width:8;stroke-opacity:.09}
.bm9 .body-line path{fill:none;stroke:var(--p-action);stroke-width:1.05;stroke-linejoin:round}
.bm9 .det{fill:none;stroke:var(--p-action);stroke-width:.6;stroke-linecap:round;opacity:.38}
.bm9 .vt{fill:var(--p-dot);fill-opacity:.62;stroke:var(--p-action);stroke-width:.35;stroke-opacity:.55}
.bm9 .vt.s,.bm9 .vt.cx{fill-opacity:.45}
.bm9 .halo{fill:#45B5E9;fill-opacity:.2;stroke:#45B5E9;stroke-opacity:.6;stroke-width:.7;transition:fill .25s,fill-opacity .25s,stroke .25s,stroke-opacity .25s,stroke-width .25s}
.bm9 .imp .halo{fill-opacity:.28;stroke-opacity:.85;stroke-width:.9;animation:bm9pulse 3s ease-in-out infinite}
@keyframes bm9pulse{0%,100%{stroke-width:.9}50%{stroke-width:2.2}}
.bm9 .dot{fill:#45B5E9;stroke:#FFFFFF;stroke-width:.9;transition:fill .25s}
.bm9 .nv{fill:none;stroke:#45B5E9;stroke-width:.9;stroke-dasharray:1.4 2.8;stroke-linecap:round;opacity:.45;transition:opacity .25s,stroke .25s,stroke-width .25s}
.bm9 .hit{fill:#FFFFFF;fill-opacity:0;cursor:pointer;pointer-events:all}
.bm9 .reg.on .halo{fill:#05928D;fill-opacity:.24;stroke:#05928D;stroke-opacity:.95}
.bm9 .reg.on .dot{fill:var(--p-action)}
.bm9 .reg.sel .halo{fill:#05928D;fill-opacity:.36;stroke:var(--p-action);stroke-opacity:1;stroke-width:1.4;animation:none}
.bm9 .reg.sel .dot{fill:var(--p-action);r:3.8}
.bm9 .reg.sel .nv{opacity:1;stroke:var(--p-action);stroke-width:1.6;stroke-dasharray:none}
.bm9 .reg.on .nv{opacity:1;stroke:#05928D;stroke-width:1.3}
.bm9-ctl{position:absolute;top:10px;display:flex;gap:4px;padding:4px;background:#FFFFFFE8;border-radius:999px;box-shadow:0 8px 22px -14px color-mix(in srgb, var(--p-ink) 50%, transparent)}
.bm9-zoom{left:10px}
.bm9-side{right:10px}
.bm9-ctl button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--p-action);font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .2s,color .2s}
.bm9-zoom button{padding:0;width:36px}
.bm9-ctl button:hover{background:var(--p-bg)}
.bm9-ctl button[aria-pressed=true]{background:var(--p-action);color:#FFFFFF}
.bm9-ctl button:disabled{opacity:.32;cursor:default;background:transparent}
.bm9 button:focus-visible,.bm9 a:focus-visible,.bm9 summary:focus-visible{outline:none;box-shadow:0 0 0 2px #FFFFFF,0 0 0 4px var(--p-action)}
.bm9-coach{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:8px;width:210px;padding:16px 14px;border-radius:20px;background:#0E3A47E6;color:#FFFFFF;font-size:14px;line-height:1.7;text-align:center;pointer-events:none;transition:opacity .4s}
.bm9-coach[hidden]{display:none}
.bm9-coach.out{opacity:0}
.bm9-coach .hand{display:inline-flex;color:#8EC85C;animation:bm9sway 1.6s ease-in-out infinite}
@keyframes bm9sway{0%,100%{transform:translateX(-10px)}50%{transform:translateX(10px)}}
.bm9-help{margin:6px 0 10px;font-size:12.5px;line-height:1.7;color:var(--p-muted);text-align:center}
.bm9-help .m-only{display:none}
.bm9-sel{margin:0 0 10px;padding:10px 12px;border-radius:16px;background:var(--p-deep-text)}
.bm9-sel.has{background:#E3EEE8}
.bm9-sel-h{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--p-ink);min-height:32px}
.bm9-count{font-size:13px;color:var(--p-muted);white-space:nowrap}
.bm9-sel-h b{white-space:nowrap}
.bm9-clear{white-space:nowrap;display:inline-flex;align-items:center;gap:6px;margin-inline-start:auto;border:0;background:#FFFFFF;border-radius:999px;padding:0 12px;min-height:32px;font:inherit;font-size:13px;color:var(--p-text-2);cursor:pointer}
.bm9-clear:hover{color:#A3532F}
.bm9-clear[hidden]{display:none}
.bm9-empty{margin:2px 0 0;font-size:13.5px;color:var(--p-muted)}
.bm9-picked{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:6px;max-height:186px;overflow:auto}
.bm9-picked li{display:flex;align-items:center;gap:10px;min-height:40px;padding:4px 6px 4px 4px;border-radius:12px;background:#FFFFFF;font-size:14.5px}
.bm9-picked .pn{display:inline-flex;align-items:center;gap:8px;font-weight:650;color:var(--p-action);padding-right:8px}
.bm9-picked .pn::before{content:'';width:9px;height:9px;border-radius:50%;background:var(--p-action)}
.bm9-picked .pg{font-size:13px;color:var(--p-text-2);margin-inline-start:auto;display:inline-flex;align-items:center;min-height:32px}
.bm9-picked .pg:hover{color:#A3532F}
.bm9-picked .rm{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:50%;background:var(--p-deep-text);color:var(--p-text-2);cursor:pointer}
.bm9-picked .rm:hover{color:#A3532F}
.bm9-list{border-radius:14px;background:#FFFFFF;border:1px solid var(--p-sage)}
.bm9-list summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 14px;font-size:14.5px;font-weight:600;color:var(--p-ink);cursor:pointer;border-radius:14px}
.bm9-list summary::-webkit-details-marker{display:none}
.bm9-list .chev{width:8px;height:8px;border-left:1.6px solid var(--p-action);border-bottom:1.6px solid var(--p-action);transform:rotate(-45deg);transition:transform .25s}
.bm9-list[open] .chev{transform:rotate(135deg)}
.bm9-list ul{list-style:none;margin:0;padding:4px 10px 10px;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.bm9-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 4px 4px 4px;border-radius:12px;background:var(--p-deep-text);font-size:14px}
.bm9-row .nm{padding-right:8px;color:var(--p-ink)}
.bm9-row .pair{display:flex;gap:4px}
.bm9-tg{min-width:40px;min-height:34px;padding:0 10px;border:0;border-radius:10px;background:#FFFFFF;font:inherit;font-size:13.5px;color:var(--p-action);cursor:pointer;transition:background .2s,color .2s}
.bm9-tg.wide{width:100%;background:transparent;color:var(--p-ink);font-size:14px;text-align:right;padding:0 8px}
.bm9-tg.on{background:var(--p-sage)}
.bm9-tg[aria-pressed=true]{background:var(--p-action);color:#FFFFFF}
@media (prefers-reduced-motion: reduce){
  .bm9-flip{transition:none}
  .bm9 .imp .halo,.bm9-coach .hand{animation:none}
  .bm9 .halo,.bm9 .dot,.bm9 .nv,.bm9-tg,.bm9-ctl button,.bm9-list .chev{transition:none}
}
.bm11 .vol path{fill:none;stroke:var(--p-action);stroke-width:9;stroke-opacity:.13}
.bm11 .body-line path{stroke-width:1.05}
.bm11 .bm9-stagewrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.bm11 .bm9-stage{order:2;flex:0 0 100%}
.bm11 .bm9-ctl{position:static;order:1;box-shadow:none;background:var(--p-deep-text)}
.bm11 .bm9-flip{inset:12px 0 8px}

/* Mobile (mobile.html) */
@media (max-width: 767px){
  .g-map{position:relative;left:auto;bottom:auto;width:auto;margin:-60px 12px 0;padding:20px 18px 14px}
  .g-map{margin:-132px 12px 0;box-shadow:0 24px 48px -26px color-mix(in srgb, var(--p-ink) 40%, transparent)}
  .bm9-help .d-only{display:none}
  .bm9-help .m-only{display:inline}
  .bm9{width:auto;padding:20px 14px 14px}
  .bm9-stage{height:540px}
  .bm9-flip{inset:62px 0 10px}
  .bm9-zoom .z-in,.bm9-zoom .z-out{display:none}
  .bm9-zoom{padding:4px}
  .bm9-zoom .z-fit:disabled{display:none}
  .bm9-zoom:has(.z-fit:disabled){display:none}
  .bm9-ctl button{min-width:44px;height:44px}
  .bm9-tg{min-height:44px;min-width:48px}
  .bm9-list ul{grid-template-columns:1fr}
  .bm9-picked li{min-height:44px}
  .bm9-picked .rm{width:44px;height:44px}
  .bm11 .bm9-zoom{display:flex}
  .bm11 .bm9-zoom .z-fit:disabled{display:inline-flex}
  .bm11 .bm9-zoom:has(.z-fit:disabled){display:flex}
  .bm11 .bm9-flip{inset:10px 0 8px}
}

/* Tablet 768-1279: one column like mobile; the card sits over the bottom of the photo (art direction 4.4). */
@media (min-width: 768px) and (max-width: 1279px) {
  .g-map{position:relative;left:auto;bottom:auto;margin:-132px auto 0;box-shadow:0 24px 48px -26px color-mix(in srgb, var(--p-ink) 40%, transparent)}
}

/* Body map links come from published pages; a region without a page has no link. */
.bm9-picked li.nolink .rm{margin-inline-start:auto}
.g-map h2::after{content:none}

/*
 * Laptop (owner's correction, 1405/08/19): the empty card sits exactly where the approved design
 * puts it, but its top is now fixed, so choosing regions makes the card grow downward instead of
 * up under the sticky header. The card is in the page flow, so the hero grows with it and nothing
 * below is covered. The photo keeps its approved 760px height.
 */
@media (min-width: 1280px) {
  .g-hero__stage{height:auto;min-height:760px}
  .g-hero__photo{bottom:auto;height:760px}
  .g-map{position:relative;left:auto;bottom:auto;z-index:1;margin:-17px auto 0 0}
}
