/* GIS Map Maker (v1, 2026-11-30): same look as the valuation tool. IBM Plex Sans, navy, no green. */
:root{--navy:#12334f;--navy2:#0b2740;--orange:#e8752a;--orange2:#d4651d;--ink:#1f2a37;--muted:#566271;--line:#d8dee6;--soft:#f5f7f9;--bad:#b42318}
*{box-sizing:border-box}
body{margin:0;background:#eef2f6;color:var(--ink);font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.45}
/* full window width like the home page (2026-11-30); the sheet preview takes the room beside the controls */
.mp-wrap{max-width:none;margin:0;padding:12px clamp(10px,1.2vw,18px) 40px}
/* compact intro (2026-11-30): tighter spacing, text across the full width, justified */
.mp-hero{background:#fff;border:1px solid var(--line);border-top:3px solid var(--navy);border-radius:8px;padding:11px 18px 12px;margin-bottom:12px}
.mp-eyebrow{margin:0 0 1px;color:#b85c1e;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.mp-hero h1{margin:0 0 3px;color:var(--navy);font-size:22px;font-weight:600;line-height:1.2}
.mp-hero p{margin:0;color:var(--muted);max-width:none;font-size:14px;line-height:1.45;text-align:justify;text-justify:inter-word;hyphens:auto}
.mp-hero .mp-soon{margin-top:4px;font-size:12.5px;color:#3c4a59}
.mp-layout-grid{display:grid;grid-template-columns:400px minmax(0,1fr);gap:14px;align-items:start}
.mp-controls{display:grid;gap:10px}
.mp-card{background:#fff;border:1px solid var(--line);border-top:2px solid var(--navy);border-radius:8px;padding:14px 16px}
.mp-card h2{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:16px;font-weight:600;color:var(--navy)}
.mp-card h2 b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1.5px solid var(--navy);font-size:12px}
.mp-row{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.mp-chip{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:7px 11px;border:1px solid #c3ccd6;border-radius:6px;background:#fff;color:var(--navy);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.mp-chip small{font-size:11px;color:var(--muted);font-weight:400}
.mp-chip.on{border-color:var(--navy);background:var(--navy);color:#fff}
.mp-chip.on small{color:#dbe5ee}
.mp-layouts{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.mp-layout{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px;border:1px solid #c3ccd6;border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:12px;cursor:pointer}
.mp-layout svg{width:100%;max-width:120px;height:auto}
.mp-layout.on{border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy)}
.mp-tabs{display:flex;gap:4px;margin-bottom:10px;border-bottom:1px solid var(--line)}
.mp-tab{padding:7px 12px;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.mp-tab.on{color:var(--navy);border-bottom-color:var(--orange);font-weight:600}
.mp-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mp-f{display:block;margin:0 0 8px;font-size:12.5px;font-weight:600;color:#3c4a59}
.mp-f input,.mp-f select{display:block;width:100%;margin-top:4px;padding:9px 10px;border:1px solid #c9d2dc;border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:14.5px}
.mp-f select:disabled{background:#f3f5f8;color:#8a96a3}
.mp-f input:focus,.mp-f select:focus{outline:2px solid rgba(232,117,42,.4);border-color:var(--orange)}
.mp-checks{gap:12px;font-size:13.5px}
.mp-checks label{display:flex;align-items:center;gap:6px;cursor:pointer}
.mp-checks input{width:17px;height:17px}
.mp-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 16px;border:1px solid var(--navy);border-radius:6px;background:var(--navy);color:#fff;font:inherit;font-weight:600;font-size:14px;cursor:pointer}
.mp-btn.go{background:var(--orange);border-color:var(--orange)}
.mp-btn.go:hover{background:var(--orange2)}
.mp-btn.alt{background:#fff;color:var(--navy);border-color:#c3ccd6}
.mp-btn.small{min-height:34px;padding:5px 12px;font-size:13px}
.mp-btn:disabled{opacity:.6;cursor:default}
.mp-price{margin:0 0 8px;font-size:15px;color:var(--ink)}
.mp-price b{color:var(--navy);font-size:18px}
.mp-msg{margin:6px 0;font-size:13.5px;color:var(--muted)}
.mp-msg.small{font-size:12px}
.mp-msg.ok{color:var(--navy);font-weight:600}
.mp-msg.err{color:var(--bad);font-weight:600}
.mp-preview{position:sticky;top:112px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px}
.mp-preview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:var(--navy);font-size:14px}
.mp-preview-head span{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}
.mp-sheet{background:#d9e0e7;padding:10px;border-radius:4px}
.mp-sheet svg{display:block;width:100%;height:auto;background:#fff;box-shadow:0 2px 10px rgba(9,30,48,.18)}
.mp-spin{display:inline-block;width:15px;height:15px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:mpspin .8s linear infinite}
.mp-spin.dark{border-color:rgba(18,51,79,.25);border-top-color:var(--navy)}
@keyframes mpspin{to{transform:rotate(360deg)}}
[hidden]{display:none!important}
/* beside the controls the whole sheet stays in view: as wide as the column allows but no taller than the window
   (--ar = sheet width / height, set by the script for the paper and orientation) */
@media (min-width:1001px){
  .mp-sheet svg{width:min(100%,calc((100vh - 190px) * var(--ar,1.414)));margin:0 auto}
}
@media (min-width:1600px){
  .mp-layout-grid{grid-template-columns:440px minmax(0,1fr)}
}
/* step 5: data for your own analysis (2026-12-01) */
.mp-dl-years{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;margin:4px 0 10px}
.mp-dl-year{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 5px 4px 9px;border:1px solid var(--line);border-radius:6px;font-size:13.5px}
.mp-dl-year label{display:flex;align-items:center;gap:6px;cursor:pointer;font-weight:600;color:var(--navy)}
.mp-dl-year input{width:16px;height:16px}
.mp-dl-year .mp-btn.small{min-height:28px;padding:3px 8px;font-size:12px}
.mp-dl-on{font-size:12px;font-weight:600;color:var(--orange2);padding:0 4px}
.mp-bar{height:8px;margin:6px 0;border-radius:4px;background:#e6eaef;overflow:hidden}
.mp-bar i{display:block;height:100%;background:var(--navy);transition:width .4s}
a.mp-btn{text-decoration:none}
/* step 2: the user's own file (2026-12-04) */
.mp-src{padding-bottom:8px;border-bottom:1px solid var(--line);margin-bottom:10px}
.mp-own{margin:0 0 6px}
.mp-own .mp-msg.small:first-child{padding:7px 9px;border-left:3px solid var(--navy);background:var(--soft);color:#3c4a59}
.mp-f input[type=file]{padding:7px;font-size:13px;background:var(--soft)}
.mp-colour{display:flex;align-items:center;gap:10px}
.mp-colour input[type=color]{width:46px;height:32px;margin:0;padding:2px}
.mp-warn{color:#b85c1e}
.mp-ov{margin:8px 0;border:1px solid var(--line);border-radius:6px;padding:6px 10px}
.mp-ov summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--navy);padding:3px 0}
.mp-ov[open] summary{margin-bottom:8px}
.mp-files{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.mp-files li{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}
.mp-files li span{display:flex;flex-direction:column;min-width:0}
.mp-files li b{color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mp-files small{color:var(--muted);font-size:11.5px}
.mp-sum{display:none}
.mp-size{display:none}
@media (max-width:1000px){
  .mp-layout-grid{grid-template-columns:1fr}
  /* phones and tablets (2026-12-01): the map stays in view under the menu while the steps scroll below it */
  .mp-preview{position:sticky;top:var(--mp-top,110px);z-index:20;order:-1;padding:6px 8px 8px;box-shadow:0 6px 14px rgba(9,30,48,.14)}
  .mp-preview-head{margin-bottom:4px}
  .mp-sheet{padding:4px}
  .mp-sheet svg{width:min(100%,calc(var(--mp-maxh,38vh) * var(--ar,1.414)));margin:0 auto}
  .mp-preview.big{--mp-maxh:68vh}
  .mp-preview > .mp-msg{display:none}            /* the watermark note: room for the map on small screens */
  .mp-size[hidden]{display:none}
  .mp-size{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid #c3ccd6;border-radius:6px;background:#fff;color:var(--navy);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
  /* steps fold up: one open at a time; a closed step shows a one-line summary of its choices */
  .mp-card h2{cursor:pointer;margin:0;user-select:none}
  .mp-card h2::after{content:"";margin-left:auto;width:9px;height:9px;border-right:2px solid var(--navy);border-bottom:2px solid var(--navy);transform:rotate(45deg);transition:transform .15s}
  .mp-card:not(.mp-closed) h2{margin-bottom:10px}
  .mp-card:not(.mp-closed) h2::after{transform:rotate(-135deg)}
  .mp-card.mp-closed > :not(h2):not(.mp-sum){display:none!important}
  .mp-card.mp-closed .mp-sum{display:block;margin:4px 0 0 34px;color:var(--muted);font-size:12.5px;line-height:1.35}
  .mp-card{scroll-margin-top:calc(var(--mp-top,110px) + var(--mp-prev,300px) + 8px)}
}
@media (max-width:620px){
  .mp-wrap{padding:10px 10px 30px}
  .mp-hero{padding:10px 12px 11px}
  .mp-hero h1{font-size:20px}
  .mp-hero p{font-size:13.5px}
  .mp-grid{grid-template-columns:1fr}
  .mp-sheet{padding:4px}
}
