/* r155 (Will): the market map is the hero of its section. It runs the full width of the page with no frame, and
   fades out at the top and bottom. The land and its white lines are the Leads map's own. */
.mkt{padding:13vh 0 11vh;scroll-margin-top:72px}
.mkt-vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* the line above the map: where you are on the left, search on the right */
.mkt-bar{display:flex;align-items:center;justify-content:space-between;gap:16px 28px;margin-top:46px;min-height:52px}
.mkt-where{display:flex;align-items:center;gap:16px;min-width:0}
.mkt-back{flex:none;display:inline-flex;align-items:center;gap:9px;min-height:44px;margin:0;padding:0 18px 0 7px;border:0;border-radius:999px;background:#e3eafa;color:var(--ink);font:500 15px/1 Outfit,system-ui,sans-serif;cursor:pointer;transition:background .2s}
.mkt-back[hidden]{display:none}
.mkt-back i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;color:var(--twb)}
.mkt-back svg{width:14px;height:14px}
.mkt-back:hover{background:#d6e0f8}
.mkt-back:focus-visible,.mkt-pn:focus-visible,.mkt-px:focus-visible,.mkt-go:focus-visible{outline:2px solid var(--twb);outline-offset:3px}
.mkt-status{margin:0;min-width:0;font-size:17px;line-height:1.4;color:var(--body);text-wrap:pretty}
.mkt-status b{margin-right:6px;font-size:1.3em;font-weight:600;letter-spacing:-.015em;color:var(--ink)}
.mkt-status.nudge{color:var(--twb);animation:mktNudge .5s}
@keyframes mktNudge{20%{transform:translateX(-6px)}50%{transform:translateX(5px)}80%{transform:translateX(-2px)}}
.mkt-find{position:relative;flex:none;width:min(340px,100%)}
.mkt-find input{box-sizing:border-box;width:100%;height:52px;margin:0;padding:0 16px 0 46px;border:1px solid #d7def0;border-radius:14px;color:var(--ink);font:400 16px/1.3 Outfit,system-ui,sans-serif;-webkit-appearance:none;appearance:none;
 background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.6' cy='8.6' r='5.6' fill='none' stroke='%238a90ad' stroke-width='1.9'/%3E%3Cpath d='M13 13l4.4 4.4' stroke='%238a90ad' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") 16px 50%/19px no-repeat}
.mkt-find input::placeholder{color:#8a90ad}
.mkt-find input::-webkit-search-cancel-button{-webkit-appearance:none}
.mkt-find input:focus-visible{outline:2px solid var(--twb);outline-offset:2px}
.mkt-find ul{position:absolute;z-index:6;left:0;right:0;top:calc(100% + 8px);margin:0;padding:6px;list-style:none;border:1px solid #dfe5f3;border-radius:14px;background:#fff;box-shadow:0 24px 46px -20px rgba(13,16,51,.34)}
.mkt-find ul[hidden]{display:none}
.mkt-find li{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:11px 12px;border-radius:9px;font-size:15px;line-height:1.3;color:var(--ink);cursor:pointer}
.mkt-find li b{font-weight:500}
.mkt-find li span{flex:none;font-size:13px;color:var(--muted)}
.mkt-find li[aria-selected="true"],.mkt-find li[role="option"]:hover{background:#edf2fe}
.mkt-find li.none{color:var(--body);cursor:default}

/* the map */
.mkt-stage{position:relative;height:clamp(420px,66vh,720px);margin-top:6px;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.mkt-view{position:absolute;inset:0;opacity:0;transition:opacity .7s;-webkit-mask-image:linear-gradient(transparent,#000 5.5%,#000 94.5%,transparent);mask-image:linear-gradient(transparent,#000 5.5%,#000 94.5%,transparent)}
.mkt.ready .mkt-view{opacity:1}
/* a soft light behind the country, gone once the map moves in to a state */
.mkt-stage::before{content:"";position:absolute;inset:2% 8%;background:radial-gradient(closest-side,#fff 0,rgba(255,255,255,.75) 45%,rgba(255,255,255,0) 100%);pointer-events:none;opacity:0;transition:opacity .6s}
.mkt.ready:not(.zoomed) .mkt-stage::before{opacity:1}
.mkt-svg{position:absolute;inset:0;display:block;width:100%;height:100%}
.mkt-svg path{vector-effect:non-scaling-stroke;stroke-linejoin:miter;stroke-miterlimit:2;outline:0}
.mkt-svg[data-moving] path{shape-rendering:optimizeSpeed}
.mkt-rg{transition:opacity .4s}
.mkt-rg.off{opacity:0;pointer-events:none}
.mkt-st path{fill:#dfe6f5;stroke:#fff;stroke-width:1.4;cursor:pointer}
.is-st .mkt-st path{fill:#eaeef9}
.is-st .mkt-st path.on{fill:#dde5f6;cursor:default}
.is-us .mkt-st path{transition:fill .4s}
.is-us .mkt-st path.lit{fill:#c9d7f6}
/* Will: no areas while a state is being chosen. A market is drawn only while its state is the one chosen, or once it has been chosen itself */
.mkt-mk path,.mkt-pk path{pointer-events:none}
.mkt-mk path{display:none}
.mkt-svg path.act{pointer-events:auto;cursor:pointer;transition:fill .18s,fill-opacity .18s}
/* r157: from the SnapMortgage map, in this page's blues. A metro area is drawn stronger than a micro area, in the same
   proportion as there (fill .58 to .38, line 1.25 to .75), and no two neighbours share a tint, so each area reads as its own.
   r162 (Will, 15 November): "everything blue. No purples." The four tints are four blues, a deep one to a light one, and
   the chosen market, the key and the outlines around a focused control are blue as well. */
/* the class names here are the map's own: the pages already use t3, pv and others for different things */
.mkt-mk path.tint0{--m:#145de9}
.mkt-mk path.tint1{--m:#0b56c9}
.mkt-mk path.tint2{--m:#5fa8f7}
.mkt-mk path.tint3{--m:#2f83f2}
.mkt-mk path.act{display:inline;fill:var(--m);fill-opacity:.3;stroke:var(--m);stroke-opacity:.92;stroke-width:1.25}
.mkt-mk path.act.micro{fill-opacity:.2;stroke-opacity:.7;stroke-width:.75}
.mkt-mk{transition:opacity .5s .16s}
.mkt-svg[data-arrive] .mkt-mk{opacity:0;transition:none}
.mkt-pk path{stroke:#fff;stroke-width:1.5}
/* r158 (Caleb): the chosen market in the site's gradient, the markets that touch it in a second, lighter blue */
.mkt-pk path.near{fill:#86adf9}
/* once a market is chosen the rest of the state steps back, so the two colours in the key are the two that stand out */
.mkt-svg.has-pick .mkt-mk path.act{fill-opacity:.16;stroke-opacity:.5}
.mkt-svg.has-pick .mkt-mk path.act.micro{fill-opacity:.1;stroke-opacity:.38}
.mkt-fo{fill:none;stroke:rgba(13,16,51,.2);stroke-width:1.5;pointer-events:none}
.mkt-ring{fill:none;stroke:var(--ink);stroke-width:2.6;pointer-events:none}
@media (hover:hover){
 .mkt-st path{transition:fill .18s}
 .is-us .mkt-st path:hover{fill:#c9d7f6}
 .is-st .mkt-st path:not(.on):hover{fill:#dae3f7}
 .mkt-mk path.act:hover{fill-opacity:.5;stroke-opacity:1;stroke-width:2}
 .mkt-mk path.act.micro:hover{fill-opacity:.42;stroke-width:1.6}
 .mkt-pk path.act:hover{filter:brightness(1.12)}
 .mkt-pk path.near.act:hover{filter:none;fill:#6b99f6}
 .mkt-svg.has-pick .mkt-mk path.act:hover{fill-opacity:.4;stroke-opacity:1}
}
.mkt-lbs{position:absolute;inset:0;overflow:hidden;pointer-events:none;opacity:0;transition:opacity .28s}
.mkt-lbs.on{opacity:1}
.mkt-lb{position:absolute;left:0;top:0;white-space:nowrap;font:500 12px/1.15 Outfit,system-ui,sans-serif;color:#1a2a72}
.mkt-lb.out{text-shadow:0 0 2px #f5f7fc,0 0 3px #f5f7fc,0 0 5px #f5f7fc}
.mkt-lb.micro{font-size:11px;font-weight:400;color:#33407f}
.mkt-lb.sel{font-weight:600;color:#fff}
.mkt-lb.nr{font-weight:600;color:#0d1a52}
.mkt-lb.sel.out{color:var(--ink)}
.mkt-lb.st{font-size:11.5px;letter-spacing:.02em;color:#8d95ba;text-shadow:none}
.mkt-tip{position:absolute;left:0;top:0;z-index:5;max-width:min(330px,calc(100% - 16px));padding:9px 13px;border-radius:11px;background:var(--ink);color:#fff;font-size:13.5px;line-height:1.3;pointer-events:none;box-shadow:0 16px 30px -14px rgba(13,16,51,.55)}
.mkt-tip[hidden]{display:none}
.mkt-tip b{display:block;font-weight:600}
.mkt-tip span{display:block;margin-top:2px;font-size:12.5px;color:#b7cdf6}
.mkt-tip.auto{animation:mktTipIn .45s ease-out}
@keyframes mktTipIn{from{opacity:0}}
/* the key: what the two colours mean. Shown once there is something for it to explain */
.mkt-key{position:absolute;z-index:2;left:max(32px,calc(50% - 588px));bottom:0;display:flex;gap:18px;margin:0;font-size:13.5px;line-height:1.2;color:var(--body);pointer-events:none;text-shadow:0 0 2px #f5f7fc,0 0 4px #f5f7fc,0 0 6px #f5f7fc}
.mkt-key[hidden]{display:none}
.mkt-key span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.mkt-key span::before{content:"";width:13px;height:13px;border-radius:4px;background:linear-gradient(135deg,#1f6cf2,#0b3fc2);box-shadow:0 0 0 1.5px #fff}
.mkt-key span+span::before{background:#86adf9}
/* where the lines come from, in the corner, as on any map */
.mkt-credit{position:absolute;z-index:2;right:max(32px,calc(50% - 588px));bottom:2px;margin:0;font-size:10.5px;line-height:1.2;letter-spacing:.01em;color:#757da6;text-shadow:0 0 2px #f5f7fc,0 0 4px #f5f7fc,0 0 6px #f5f7fc;pointer-events:none;opacity:0;transition:opacity .7s}
.mkt.ready .mkt-credit{opacity:1}
/* only seen on a slow connection: the space the map will fill says what it is waiting for */
.mkt-wait{position:absolute;inset:0;display:grid;place-items:center;margin:0;font-size:17px;color:var(--body);pointer-events:none;animation:mktWait 1.3s ease-in-out infinite alternate}
@keyframes mktWait{from{opacity:.4}}
.mkt.nomap .mkt-credit{display:none}

/* what was chosen, and the way on */
.mkt-tray{display:flex;flex-direction:column;align-items:center;gap:16px;margin-top:2px}
/* the row keeps its height while it is empty, so the button does not jump when the first market is chosen */
.mkt-picks{display:flex;flex-direction:column;align-items:center;gap:0;max-width:880px;min-height:74px;margin:0;padding:0;list-style:none}
.mkt-picks[hidden]{display:flex;visibility:hidden}
.mkt-picks li{display:inline-flex;align-items:center}
.mkt-pn{margin:0;padding:10px 2px 10px 0;border:0;border-radius:6px;background:none;color:var(--ink);font:500 17px/1.2 Outfit,system-ui,sans-serif;cursor:pointer}
.mkt-pn::before{content:"";display:inline-block;width:9px;height:9px;margin-right:9px;border-radius:50%;background:linear-gradient(135deg,#1f6cf2,#0b3fc2);vertical-align:1px}
.mkt-pn:hover{color:var(--twb)}
.mkt-px{display:grid;place-items:center;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;background:none;color:#8a90ad;cursor:pointer;transition:background .2s,color .2s}
.mkt-px svg{width:16px;height:16px}
.mkt-px:hover{background:#e3eafa;color:var(--ink)}
.mkt-nr{display:block!important;font-size:15px;line-height:1.45;color:var(--body);text-align:center;text-wrap:balance}
.mkt-nr::before{content:"";display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:50%;background:#86adf9;vertical-align:1px}
.mkt .mkt-go{margin-top:0;max-width:100%;text-align:left}
/* r162 (Will): no purple on the map. Its button keeps the site's shape and the light that runs round its edge, in blue only */
.mkt .mkt-go::before{background:conic-gradient(from var(--a),rgba(255,255,255,.12) 0deg,rgba(255,255,255,.12) 220deg,#7fd2ff 280deg,#fff 320deg,#9cc4ff 350deg,rgba(255,255,255,.12) 360deg)}
.mkt .mkt-go::after{background:linear-gradient(90deg,#1f6cf2,#0b3fc2)}
.mkt .mkt-go i{color:var(--twb)}
.mkt-go span{min-width:0;text-wrap:balance}
.mkt .mkt-go[aria-disabled="true"]{background:#e3e8f5;color:#565c82;box-shadow:none;cursor:not-allowed}
.mkt .mkt-go[aria-disabled="true"]::before{display:none}
.mkt .mkt-go[aria-disabled="true"]::after{opacity:0}
.mkt .mkt-go[aria-disabled="true"]:hover{transform:none}
.mkt .mkt-go[aria-disabled="true"] i{background:#f5f7fc;color:#a3aaca}
.mkt .mkt-go[aria-disabled="true"]:hover i svg{animation:none}
/* r159 (13 November call). Will: "I'm going to increase the size of this", and on Pricing "we should make this the top
   part". On a wide screen the chosen market and the button now share one row, and the map takes the height the second row
   had: 73 hundredths of the screen where it had 66. The map, what was chosen and the button still sit on one screen. */
@media (min-width:900px){
 /* r161: as tall as the screen allows with the bar above it and the button below it still on that screen: about 200 is what they and the menu take */
 .mkt-stage{height:clamp(440px,calc(100vh - 200px),900px);height:clamp(440px,calc(100svh - 200px),900px)}
 .mkt-tray{flex-direction:row;justify-content:space-between;gap:30px;min-height:60px;margin-top:6px}
 .mkt-picks{align-items:flex-start;min-height:0;max-width:680px}
 .mkt-pn{padding-top:5px;padding-bottom:5px}
 .mkt-px{width:30px;height:30px}
 .mkt-picks[hidden]{display:none}
 .mkt-nr{text-align:left;text-wrap:pretty}
 .mkt .mkt-go{flex:none;margin-left:auto}       /* the button keeps its place at the end of the row, chosen or not */
}
/* first on the Pricing page: the page's headline is the map's, with the room a first section needs under the menu */
.mkt-top{padding:clamp(100px,11.5vh,128px) 0 8vh}
/* r161: at the top of Pricing the whole country has to be on the first screen, so the headline is a size down and the line that sat
   under it waits beside the button, where what it describes will appear */
.mkt-top .hd{font-size:clamp(34px,min(4.3vw,7.2vh),64px);line-height:1.02;letter-spacing:-.045em}      /* a short window gets a smaller headline, and the country gets the room */
.mkt-top .mkt-bar{margin-top:20px}
.mkt-hint{display:none;margin:0;max-width:34em;font-size:clamp(16px,1.25vw,18px);line-height:1.5;color:var(--body);text-align:left;text-wrap:pretty}
@media (min-width:900px){.mkt-hint{display:block}.mkt-picks:not([hidden])+.mkt-hint{display:none}}
.mkt-top+.cmpx{padding-top:12vh}
.mkt.nomap .mkt-stage,.mkt.nomap .mkt-find{display:none}
.mkt.nomap .mkt-bar{justify-content:center;text-align:center}

@media (max-width:760px){
 .mkt{padding:9vh 0 8vh}
 .mkt-top{padding:104px 0 7vh}
 .mkt-top .hd{font-size:clamp(28px,7.9vw,40px);line-height:1.06;letter-spacing:-.035em}
 .mkt-top .mkt-bar{margin-top:20px}
 body .mkt-top+section.cmpx{padding-top:56px!important}
 .mkt-bar{position:relative;flex-direction:column-reverse;align-items:stretch;gap:12px;margin-top:26px}
 .mkt-find{width:100%}
 .mkt-where{min-height:0}
 .mkt-status{font-size:16px}
 /* the way back sits on the corner of the map, so the line above it has the full width */
 .mkt-back{position:absolute;z-index:4;left:0;top:calc(100% + 12px);min-height:40px;padding:0 14px 0 5px;font-size:14px;background:#fff;box-shadow:0 6px 18px -8px rgba(13,16,51,.3)}
 .mkt-back i{background:#e3eafa}
 .mkt-stage{height:72vw;margin-top:2px}   /* until the script sets it: the map's height follows what it shows */
 .mkt-stage::before{inset:0 2%}
 .mkt-lb{font-size:11.5px}
 .mkt-lb.micro{font-size:10.5px}
 .mkt-credit{right:20px;bottom:0;font-size:10px}
 .mkt-picks{min-height:92px}
 .mkt-nr{font-size:14px}
 .mkt-key{left:20px;bottom:18px;gap:12px;font-size:12.5px}
 .mkt-pn{font-size:16px}
 .mkt .mkt-go{width:100%;justify-content:space-between;gap:12px;font-size:15px;line-height:1.25}
}
@media (prefers-reduced-motion:reduce){.mkt-status.nudge,.mkt-tip.auto,.mkt-wait{animation:none}.mkt-view,.mkt-rg,.mkt-mk,.mkt-lbs,.mkt-svg path,.mkt-stage::before,.mkt-credit{transition:none}}
