/* Rent a number map (atlas.js). One card: a toolbar (where you are + the two
   ways past the map), then the map beside a ranked list. */
.atlas{position:relative;border:1px solid rgba(147,197,253,.17);border-radius:20px;overflow:hidden;margin-top:26px;
  background:radial-gradient(70% 60% at 30% 0%,rgba(59,130,246,.12),transparent 60%),linear-gradient(180deg,#0d1124,#090b18);
  box-shadow:0 60px 120px -70px rgba(0,0,0,.95)}
.atlas[hidden]{display:none}
.at-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid rgba(147,197,253,.12)}
.at-crumbs{display:flex;align-items:center;gap:6px;min-width:0}
.at-crumb{font:500 13.5px/1 'Geist',system-ui,sans-serif;color:#929FC8;background:none;border:0;padding:7px 10px;border-radius:8px;cursor:pointer;transition:color .15s,background .15s}
.at-crumb:hover{color:#fff;background:rgba(147,197,253,.07)}
.at-crumb.on{color:#EEF1FA;background:rgba(59,130,246,.14)}
.at-sep{color:#4B5578}
.at-acts{display:flex;gap:6px}
.at-link{font:500 13px/1 'Geist',system-ui,sans-serif;color:#A8C8FF;background:none;border:1px solid rgba(147,197,253,.18);border-radius:9px;padding:8px 12px;cursor:pointer;transition:border-color .15s,color .15s}
.at-link:hover{color:#fff;border-color:rgba(147,197,253,.42)}

.at-body{display:grid;grid-template-columns:minmax(0,1fr) 300px}
.at-map{position:relative;aspect-ratio:1000/660;overflow:hidden;overflow:clip;
  background:radial-gradient(60% 70% at 55% 45%,rgba(59,130,246,.09),transparent 70%)}
.at-map::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.45;
  background-image:radial-gradient(rgba(147,197,253,.14) .8px,transparent .9px);background-size:16px 16px}
.at-map svg{position:relative;display:block;width:100%;height:100%;touch-action:manipulation}
.at-load{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#929FC8;font-size:13.5px}

.at-map .ctx path{fill:rgba(147,197,253,.05);stroke:rgba(147,197,253,.1);stroke-width:.6;vector-effect:non-scaling-stroke}
.at-map .inset{fill:rgba(7,10,23,.88);stroke:rgba(147,197,253,.22);stroke-dasharray:3 4;vector-effect:non-scaling-stroke}
.at-map .rg{fill:rgba(147,197,253,.09);stroke:rgba(147,197,253,.24);stroke-width:.7;vector-effect:non-scaling-stroke;
  transition:fill .45s ease,opacity .45s ease,filter .2s ease;animation:atIn .7s cubic-bezier(.16,1,.3,1) backwards;animation-delay:var(--d,0s)}
/* backwards, not forwards: a held end state would pin opacity at 1 and stop
   the "other country recedes" and picking fades below from applying */
@keyframes atIn{from{opacity:0;transform:translateY(6px)}}
/* top level: a country lights up as one piece */
.atlas[data-stage="na"] .ctry .rg{cursor:pointer}
.atlas[data-stage="na"] .ctry[data-c="CA"] .rg{fill:rgba(59,130,246,.34);stroke:rgba(165,190,255,.34)}
.atlas[data-stage="na"] .ctry[data-c="US"] .rg{fill:rgba(147,197,253,.13)}
.atlas[data-stage="na"] .ctry.hot .rg{fill:rgba(96,165,250,.55);stroke:rgba(255,255,255,.4)}
.atlas[data-stage="na"] .ctry[data-c="US"].hot .rg{fill:rgba(147,197,253,.26)}
/* country level: shade by stock, the other country recedes */
.atlas:not([data-stage="na"]) .ctry .rg{opacity:.35}
.atlas[data-stage="CA"] .ctry[data-c="CA"] .rg,.atlas[data-stage="US"] .ctry[data-c="US"] .rg{opacity:1}
.atlas[data-stage="CA"] .ctry[data-c="CA"] .rg.has,.atlas[data-stage="US"] .ctry[data-c="US"] .rg.has{cursor:pointer;
  fill:color-mix(in oklab,#1D4ED8 calc((1 - var(--t,0)) * 100%),#2DD4BF);fill-opacity:calc(.45 + var(--t,0) * .45)}
.atlas .rg.on,.atlas .rg.has:focus-visible{fill:#60A5FA!important;fill-opacity:.95!important;stroke:#fff;stroke-width:1.4;outline:none;
  filter:drop-shadow(0 6px 14px rgba(59,130,246,.55))}
.atlas .rg.picked{fill:#93C5FD!important;fill-opacity:1!important;stroke:#fff;stroke-width:1.6}
.atlas.picking .rg:not(.picked){opacity:.2!important;transition:opacity .4s ease}
.at-map .lbs{pointer-events:none;opacity:0;transition:opacity .4s ease}
.at-map .lbs text{fill:#fff;font-family:'Geist',system-ui,sans-serif;font-weight:600;text-anchor:middle;dominant-baseline:middle;
  paint-order:stroke;stroke:rgba(7,10,23,.7);stroke-width:3px;stroke-linejoin:round}
.atlas[data-stage="CA"] .lbs,.atlas[data-stage="US"] .lbs{opacity:1}
.atlas[data-stage="CA"] .lbs text[data-c="US"],.atlas[data-stage="US"] .lbs text[data-c="CA"]{display:none}

/* hover card */
.at-tip{position:absolute;left:0;top:0;z-index:3;pointer-events:none;display:flex;flex-direction:column;gap:3px;min-width:180px;max-width:260px;
  padding:11px 13px;border-radius:12px;background:rgba(10,13,30,.94);border:1px solid rgba(147,197,253,.24);
  box-shadow:0 20px 40px -18px rgba(0,0,0,.9);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.at-tip[hidden]{display:none}
.at-tip b{font-size:14px;font-weight:600;color:#fff}
.at-tip span{font-size:12.5px;color:#BCC5E0}
.at-tip .codes{font-family:'Geist',system-ui,sans-serif;font-size:11.5px;color:#929FC8;font-variant-numeric:tabular-nums}
.at-tip em{font-style:normal;font-size:12px;color:#7DD3FC;margin-top:3px}

/* the two country cards over the map at the top level */
.at-cards{position:absolute;inset:0;pointer-events:none}
.at-card{position:absolute;pointer-events:auto;display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;cursor:pointer;
  padding:12px 15px;border-radius:14px;background:rgba(10,13,30,.82);border:1px solid rgba(147,197,253,.24);color:#EEF1FA;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 24px 50px -24px rgba(0,0,0,.9);
  transition:transform .3s cubic-bezier(.16,1,.3,1),border-color .2s,box-shadow .3s;animation:atCard .7s cubic-bezier(.16,1,.3,1) .5s backwards}
@keyframes atCard{from{opacity:0;transform:translateY(10px) scale(.97)}}
.at-card.c-ca{left:53%;top:33%}
.at-card.c-us{left:47%;top:66%}
.at-card b{font-size:16px;font-weight:600}
.at-card span{font-size:13px;color:#BCC5E0}
.at-card i{font-style:normal;font-size:12.5px;color:#7DD3FC;margin-top:3px}
.at-card.soon i{color:#929FC8}
.at-card:hover,.at-card.hot{transform:translateY(-3px);border-color:rgba(96,165,250,.6);box-shadow:0 30px 60px -24px rgba(37,99,235,.65)}
/* ---- toll-free: the continent lights up as one, and a split-flap number ----
   One wash over the whole of the US and Canada, clipped to the land: soft
   while something toll-free is hovered (.tf-on), full when it's chosen
   (.tf-commit), as the map moves in on the middle of the continent. */
/* screen: the wash lightens the land it covers, it never greys it */
.at-map .tf-glow{pointer-events:none;mix-blend-mode:screen}
.tf-fill{opacity:0;transition:opacity .45s ease}
.atlas.tf-on .tf-fill{opacity:.55}
.atlas.tf-commit .tf-fill{opacity:.95;transition:opacity .3s ease}
.atlas.tf-on[data-stage="na"] .ctry .rg{stroke:rgba(214,226,255,.42)}
/* the country cards step aside while it's lit */
.atlas.tf-on .at-card{opacity:0;pointer-events:none;transition:opacity .3s ease}

/* the toll-free card: the last entry in the list, its row over a split-flap
   number (a real one for sale, a new one every few seconds). Hovering any of
   it lights the continent. */
.at-tfc{position:relative;flex:none;border:1px solid rgba(96,165,250,.26);border-radius:10px;overflow:hidden;
  background:linear-gradient(160deg,rgba(59,130,246,.09),rgba(45,212,191,.03) 65%,rgba(147,197,253,.02));
  transition:border-color .2s ease,box-shadow .3s ease}
.at-tfc:hover,.at-tfc:focus-within,.atlas.tf-on .at-tfc{border-color:rgba(96,165,250,.55);box-shadow:0 18px 44px -26px rgba(37,99,235,.8)}
.atlas.tf-commit .at-tfc{border-color:rgba(125,211,252,.75)}
.at-tfc .at-row.big{border:0;border-radius:0;background:none}
.at-tfc .at-row.big:hover{background:rgba(59,130,246,.07)}
.at-tf-ic{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:rgba(59,130,246,.14);color:#93C5FD}
.at-tf-ic svg{width:15px;height:15px}
/* the number sits on the row's grid: +1 under the icon, the flaps under the name */
.at-tfn{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;column-gap:10px;width:100%;padding:11px 12px 12px;cursor:pointer;color:inherit;font:inherit;text-align:left;
  background:rgba(4,7,18,.42);border:0;border-top:1px solid rgba(147,197,253,.1);transition:background .2s ease}
.at-tfn[hidden]{display:none}
.at-tfn:hover{background:rgba(4,7,18,.6)}
.at-tfn:focus-visible{outline:none;box-shadow:inset 0 0 0 1px rgba(125,211,252,.6)}
.at-tfn-go{display:grid;place-items:center;color:#5B6690;transition:color .2s ease,transform .2s ease}
.at-tfn-go svg{width:14px;height:14px}
.at-tfn:hover .at-tfn-go,.at-tfn:focus-visible .at-tfn-go{color:#7DD3FC;transform:translateX(2px)}
.tfb-cc{font:600 12.5px/1 'Geist',system-ui,sans-serif;color:#7C88B0;text-align:center}
.tfb-flaps{display:flex;align-items:center;gap:2px}
.tfb-flaps .fg{width:6px}
/* a flap: the new top half shows behind the old one falling away, then the
   new bottom half swings down over the old (fl-ft / fl-fb only exist mid-flip) */
.tfb-flaps .fl{position:relative;width:15px;height:24px;border-radius:3px;perspective:90px;
  background:linear-gradient(180deg,#1c2446 0%,#151c38 50%,#111733 50%,#0e142c 100%);
  font:600 16px/24px 'Geist',system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#EEF1FA;text-align:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 1px 2px rgba(0,0,0,.45)}
.tfb-flaps .fl > span{position:absolute;inset:0;border-radius:inherit;background:inherit;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.tfb-flaps .fl-t,.tfb-flaps .fl-ft{clip-path:inset(0 0 50% 0)}
.tfb-flaps .fl-b,.tfb-flaps .fl-fb{clip-path:inset(50% 0 0 0)}
.tfb-flaps .fl-ft,.tfb-flaps .fl-fb{visibility:hidden;transform-origin:50% 50%}
.tfb-flaps .fl-ft{z-index:2}.tfb-flaps .fl-fb{z-index:3}
.tfb-flaps .fl.go .fl-ft{visibility:visible;animation:flTop calc(var(--fd,240ms) / 2) ease-in forwards}
.tfb-flaps .fl.go .fl-fb{visibility:visible;transform:rotateX(90deg);animation:flBot calc(var(--fd,240ms) / 2) ease-out calc(var(--fd,240ms) / 2) forwards}
@keyframes flTop{to{transform:rotateX(-90deg)}}
@keyframes flBot{from{transform:rotateX(90deg)}to{transform:rotateX(0)}}
/* the split every flap has */
.tfb-flaps .fl::after{content:"";position:absolute;z-index:4;left:0;right:0;top:50%;height:1px;margin-top:-.5px;background:rgba(0,0,0,.6)}

.at-soon{position:absolute;inset:0;display:grid;place-items:center;padding:20px;pointer-events:none}
.at-soon[hidden]{display:none}
.at-soon > div{pointer-events:auto;max-width:360px;display:flex;flex-direction:column;gap:6px;align-items:flex-start;padding:16px 18px;border-radius:14px;
  background:rgba(10,13,30,.9);border:1px solid rgba(147,197,253,.24);animation:atCard .5s cubic-bezier(.16,1,.3,1) .6s backwards}
.at-soon b{font-size:15px;color:#fff}
.at-soon span{font-size:13px;color:#BCC5E0;line-height:1.5}
.at-btn{margin-top:6px;font:600 13px/1 'Geist',system-ui,sans-serif;color:#fff;cursor:pointer;border:0;border-radius:10px;padding:10px 14px;
  background:linear-gradient(135deg,#3B82F6,#1D4ED8);box-shadow:0 10px 24px -10px rgba(37,99,235,.9)}

/* the side list */
/* the list never sets the card's height: the map does, and the list scrolls within it */
.at-side{position:relative;border-left:1px solid rgba(147,197,253,.12);min-width:0}
.at-side-in{position:absolute;inset:0;padding:16px 14px 16px 16px;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.at-sh b{display:block;font-size:15px;font-weight:600;color:#EEF1FA}
.at-sh span{display:block;font-size:12.5px;color:#929FC8;margin-top:3px;line-height:1.45}
.at-list{display:flex;flex-direction:column;gap:4px;overflow-y:auto;min-height:0;margin-right:-6px;padding-right:6px}
.at-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;width:100%;text-align:left;cursor:pointer;
  padding:9px 11px 12px;border-radius:10px;background:none;border:1px solid transparent;color:inherit;font:inherit;transition:background .15s,border-color .15s}
.at-row:hover{background:rgba(59,130,246,.08);border-color:rgba(96,165,250,.28)}
.at-row.big{grid-template-columns:auto minmax(0,1fr) auto;padding:13px 12px;border-color:rgba(147,197,253,.14);background:rgba(147,197,253,.03)}
.at-row.off{opacity:.62}
.at-flag{display:grid;place-items:center;width:26px;font-size:20px;line-height:1}
.at-flag img{width:26px;height:19.5px;border-radius:3.5px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.1),0 4px 10px -4px rgba(0,0,0,.6)}
.at-rn{min-width:0}
.at-rn b{display:block;font-size:13.5px;font-weight:600;color:#EEF1FA;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.at-rn i{display:block;font-style:normal;font-size:11.5px;color:#929FC8;margin-top:1px}
.at-rc{font-size:13px;font-weight:600;color:#BCC5E0;font-variant-numeric:tabular-nums}
.at-bar-in{position:absolute;left:11px;right:11px;bottom:5px;height:3px;border-radius:3px;background:rgba(147,197,253,.1);overflow:hidden}
.at-bar-in i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3B82F6,#2DD4BF);transform-origin:left;animation:atBar .8s cubic-bezier(.16,1,.3,1) backwards}
@keyframes atBar{from{transform:scaleX(0)}}

/* the listing's region bar, once a province is picked */
/* name and count, the way back to the map beside them, the area codes in one row under both */
.np-region{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 14px;padding:16px 24px;border-bottom:1px solid rgba(147,197,253,.12);
  background:linear-gradient(180deg,rgba(59,130,246,.07),rgba(59,130,246,.02))}
.np-region[hidden]{display:none}
.np-region .rg-name{display:flex;align-items:baseline;gap:9px;min-width:0}
.np-region .rg-name b{font-size:17px;font-weight:650;letter-spacing:-.01em;color:#F4F2FB}
.np-region .rg-name span{font-size:12.5px;color:#929FC8;font-variant-numeric:tabular-nums}
.np-region .rg-change{grid-column:2;grid-row:1}
.np-region .rg-codes{grid-column:1/-1;grid-row:2;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -24px;padding:2px 24px;
  -webkit-mask:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.np-region .rg-codes::-webkit-scrollbar{display:none}
.np-region .rg-code{flex:0 0 auto;font:600 12.5px/1 'Geist',system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#BCC5E0;background:rgba(147,197,253,.05);
  border:1px solid rgba(147,197,253,.16);border-radius:999px;padding:8px 13px;cursor:pointer;transition:color .15s,border-color .15s,background .15s}
.np-region .rg-code:hover{color:#fff;border-color:rgba(96,165,250,.5)}
.np-region .rg-code.on{color:#fff;background:linear-gradient(135deg,var(--electric,#2563EB),#1D4ED8);border-color:transparent;box-shadow:0 8px 18px -10px rgba(37,99,235,.9)}
@media(max-width:560px){ .np-region{padding:14px 16px} .np-region .rg-codes{margin:0 -16px;padding:2px 16px} }

@media(max-width:900px){
  .at-body{grid-template-columns:minmax(0,1fr)}
  .at-side{border-left:0;border-top:1px solid rgba(147,197,253,.12)}
  .at-side-in{position:static}
  .at-list{max-height:320px}
}
@media(max-width:560px){
  .at-bar{flex-wrap:wrap}
  .at-card{padding:9px 11px}
  .at-card b{font-size:14px}.at-card i{display:none}
  .at-card.c-ca{left:44%;top:26%}.at-card.c-us{left:38%;top:62%}
}
@media(prefers-reduced-motion:reduce){
  .at-map .rg,.at-card,.at-soon > div,.at-bar-in i{animation:none}
}
/* phones: the three actions share one row, labels on one line */
@media(max-width:560px){.at-wide{display:none}.at-acts{display:flex;gap:6px;flex-wrap:nowrap;width:100%}.at-acts .at-link{flex:1 1 0;min-width:0;padding:8px 6px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}}
