/* restyle:storm */
/* Map labels «ribbons and seals»: capitals and great cities on a swallowtail ribbon, the kind glyph as a wax seal,
   towns on paper tags. Paper halo so ink never runs through a letter, 40px tap height, .hid set by map-labels.js. */
#labels{--paper:#F6EBD3;--halo:0 0 1.5px var(--paper),1.5px 0 0 var(--paper),-1.5px 0 0 var(--paper),0 1.5px 0 var(--paper),0 -1.5px 0 var(--paper),
  1.2px 1.2px 0 var(--paper),-1.2px 1.2px 0 var(--paper),1.2px -1.2px 0 var(--paper),-1.2px -1.2px 0 var(--paper),0 0 7px rgba(246,235,211,.95);
  --wet:#E3EEEE;--whalo:0 0 1.5px var(--wet),1.5px 0 0 var(--wet),-1.5px 0 0 var(--wet),0 1.5px 0 var(--wet),0 -1.5px 0 var(--wet),0 0 7px rgba(227,238,238,.95)}
#labels .l:not(.mp-mark){text-shadow:var(--halo);transform-origin:50% 50%}
#labels .l{transition:opacity .3s var(--ease),visibility 0s}
/* hidden by declutter: fades out, then leaves the accessibility tree */
#labels .l.hid{opacity:0;pointer-events:none;visibility:hidden;transition:opacity .3s var(--ease),visibility 0s .3s}
#labels .l.city-l{z-index:3;min-height:40px;padding:9px 8px;margin:0}
#labels .l.mp-mark{z-index:5;margin:0}
/* the inline .l.hit tap padding would blow the campaign pill up to 46px: keep its own padding, the strip below gives it 42px */
#labels .l.mp-mark.camp{padding:2px 8px 2px 3px}
/* marker pill stays 24-30px, the finger gets 42-48px */
#labels .l.mp-mark::after{content:"";position:absolute;left:-2px;right:-2px;top:-9px;bottom:-9px}
#labels .l.dim{opacity:.3}
#labels .l.reg-l,#labels .l.sub-l,#labels .l.sea-l{z-index:1}
#labels .l.water-l,#labels .l.area-l{z-index:2}
#labels .l.city-l.sel{text-shadow:var(--halo),0 0 14px rgba(185,208,234,.95)}

/* regions and seas: big, airy, faint, under everything */
#labels .l.reg-l{font-size:26px;font-weight:400;letter-spacing:.32em;color:rgba(52,34,18,.5);
  text-shadow:0 0 6px rgba(246,235,211,.85),0 0 2px rgba(246,235,211,.9)}
#labels .l.sub-l{font-size:15px;letter-spacing:.34em;color:rgba(58,40,22,.62);text-shadow:0 0 5px rgba(246,235,211,.9),0 0 2px rgba(246,235,211,.9)}
#labels .l.sea-l{font-size:24px;font-style:italic;letter-spacing:.36em;color:rgba(30,74,94,.62);text-shadow:var(--whalo)}
#labels .l.reg-l.hit:hover,#labels .l.reg-l.hit.sel,#labels .l.sub-l.hit:hover,#labels .l.sub-l.hit.sel{color:rgba(122,46,26,.85)}
/* lakes and rivers: italic blue, spaced like water on old charts */
#labels .l.water-l{font-family:var(--disp);font-size:14px;font-style:italic;letter-spacing:.14em;color:#1D5671;text-shadow:var(--whalo)}
#labels .l.water-l.hit:hover,#labels .l.water-l.hit.sel{color:#0E3A50}
/* forests, ranges, wastes: italic spaced caps, brown */
#labels .l.area-l{font-family:var(--disp);font-size:12.5px;font-style:italic;letter-spacing:.2em;text-transform:uppercase;color:#5A3F22}

/* places */
#labels .l.city-l{font-family:var(--disp);font-size:13px;font-weight:700;color:#2A1508;gap:6px;isolation:isolate}
/* wax seal: the kind glyph pressed into a coloured disc */
#labels .l.city-l svg{width:22px;height:22px;padding:3px;border-radius:50%;stroke:#FBEFD6;stroke-width:1.8;
  background:radial-gradient(circle at 35% 30%,#C9503A,#8A2414 62%,#5E160A);box-shadow:0 1px 2px rgba(40,18,6,.55),inset 0 0 0 1.5px rgba(255,220,190,.25)}
#labels .l.city-l[data-k="great"] svg{background:radial-gradient(circle at 35% 30%,#D9A94A,#9A7020 62%,#6A4A10)}
#labels .l.city-l[data-k="fallen"] svg,#labels .l.city-l[data-k="ruin"] svg{background:radial-gradient(circle at 35% 30%,#6A5650,#3A2A24 62%,#1F1612);stroke:#E39A80}
#labels .l.city-l[data-k="port"] svg{background:radial-gradient(circle at 35% 30%,#4F8AA6,#2E5F78 62%,#183A4C)}
#labels .l.city-l[data-k="temple"] svg,#labels .l.city-l[data-k="wonder"] svg{background:radial-gradient(circle at 35% 30%,#6E9A58,#3F6330 62%,#24401A)}
#labels .l.city-l[data-k="town"] svg,#labels .l.city-l[data-k="fort"] svg,#labels .l.city-l[data-k="gnome"] svg{background:radial-gradient(circle at 35% 30%,#6E5034,#3E2A16 62%,#24170A)}
/* tier 1: ribbon with notched ends, drawn by two clipped layers (ink edge, paper face) */
#labels .l.city-l[data-t="1"]{font-size:14.5px;letter-spacing:.12em;text-transform:uppercase;text-shadow:none;padding:9px 16px 9px 8px}
#labels .l.city-l[data-t="1"]::before,#labels .l.city-l[data-t="1"]::after{content:"";position:absolute;z-index:-1;
  clip-path:polygon(0 0,100% 0,calc(100% - 9px) 50%,100% 100%,0 100%,9px 50%)}
#labels .l.city-l[data-t="1"]::before{left:14px;right:4px;top:6px;bottom:6px;background:#5A3418;filter:drop-shadow(0 2px 2px rgba(0,0,0,.4))}
#labels .l.city-l[data-t="1"]::after{left:15.5px;right:5.5px;top:7.5px;bottom:7.5px;
  background:linear-gradient(#FBF2DC,#EBD9B2);box-shadow:inset 0 0 0 1.5px #FBF2DC,inset 0 0 0 2.5px rgba(90,52,24,.45)}
#labels .l.city-l[data-t="1"] svg{position:relative;z-index:1;width:26px;height:26px;margin:-3px 0}
#labels .l.city-l[data-t="1"] span{padding:0 6px 0 2px}
/* tier 2: small paper tag */
#labels .l.city-l[data-t="2"]{text-shadow:none;gap:3px}
#labels .l.city-l[data-t="2"] span{background:rgba(250,241,220,.94);border:1px solid rgba(90,52,24,.7);border-radius:2px;padding:1px 6px 2px;
  box-shadow:0 1px 2px rgba(40,18,6,.35);line-height:1.2}
#labels .l.city-l[data-t="3"]{font-size:12.5px;font-weight:400;font-style:italic}
#labels .l.city-l[data-t="3"] svg{width:17px;height:17px;padding:2px}
#labels .l.city-l[data-k="ruin"] span,#labels .l.city-l[data-k="fallen"] span{color:#8E2F18}
#labels .l.city-l:hover span,#labels .l.city-l.sel span{color:#9B2414}
#labels .l.city-l.sel[data-t="2"] span{border-color:#9B2414}
