.territory{
  color:var(--ink);
  background:var(--paper);
  padding-bottom:clamp(1.6rem,3.4vw,3.4rem);
}
.territory :focus-visible{outline-color:var(--petrol)}
.territory-inner{
  display:grid;grid-template-columns:minmax(0,min(59%,55rem)) minmax(0,1fr);align-items:center;
  background:#edf4f6;border-block:1px solid #d7e5e9;
}
.territory-heading{
  grid-area:1/2;min-width:0;
  padding:clamp(1.7rem,3vw,3.4rem) var(--gutter) clamp(1.7rem,3vw,3.4rem) clamp(1.2rem,2.3vw,3.15rem);
}
.territory-kicker{color:#365764;margin-bottom:.8rem}
.territory-heading h2{
  font-size:clamp(2.35rem,calc(1rem + 3.25vw),5.8rem);font-weight:810;line-height:1;letter-spacing:-.055em;word-spacing:.05em;
  text-wrap:balance;
}
.territory-heading h2 span{color:var(--petrol)}
.territory-description{
  max-width:47ch;margin-top:clamp(.75rem,1.3vw,1.4rem);color:#42616c;
  font-size:clamp(1rem,calc(.82rem + .33vw),1.33rem);text-wrap:pretty;
}
.territory-map{
  grid-area:1/1;align-self:stretch;min-width:0;min-height:clamp(21rem,28vw,25rem);
  position:relative;isolation:isolate;overflow:hidden;background:#edf4f6;
}
.territory-relief,.territory-halo,.territory-plot,.territory-markers,.territory-flight,.territory-map::after{
  position:absolute;inset:0;width:100%;height:100%;
}
.territory-relief{
  left:50%;right:auto;width:auto;max-width:none;transform:translateX(-50%);
  opacity:.82;mix-blend-mode:multiply;
  mask-image:linear-gradient(90deg,#000 0 81%,transparent);
  filter:grayscale(1) invert(1) contrast(1.12) sepia(.16) hue-rotate(145deg) saturate(.8);
}
.territory-map::after{
  content:"";z-index:1;pointer-events:none;
  background:linear-gradient(90deg,transparent 72%,#edf4f6 100%);
}
.territory-map:has(.territory-flight:not([hidden]))::after{z-index:6}
.territory-halo{z-index:2;filter:blur(clamp(16px,2.3vw,30px));pointer-events:none}
.territory-plot{z-index:3;pointer-events:none}
.territory-markers{z-index:4;pointer-events:none}
.territory-flight{z-index:5;pointer-events:none}
.territory-map.is-flying .territory-pin{pointer-events:none}
.territory-pin{
  position:absolute;display:grid;place-items:center;width:32px;height:32px;padding:0;
  border:0;background:transparent;border-radius:50%;color:var(--ink);
  transform:translate(-50%,-50%);pointer-events:auto;
}
.territory-pin-dot{
  display:block;width:8px;height:8px;border-radius:50%;border:1px solid #294e5f;
  background:#f7fbfc;box-shadow:0 0 0 2px #f7fbfcd9;
  transition:background .2s,box-shadow .2s;
}
.territory-pin.is-anchor .territory-pin-dot{width:12px;height:12px;background:#e6a95f;border-color:#754719}
.territory-pin[data-place=gap] .territory-pin-dot{width:15px;height:15px;box-shadow:0 0 0 5px #ae692d38}
.territory-pin[aria-pressed=true]{z-index:2}
.territory-pin[aria-pressed=true] .territory-pin-dot{
  width:14px;height:14px;background:#e6a95f;border-color:#754719;box-shadow:0 0 0 5px #ae692d46;
}
.territory-pin-label{
  position:absolute;bottom:calc(50% + 9px);left:50%;transform:translateX(-50%);
  width:max-content;max-width:10rem;padding:.13rem .33rem;border-radius:2px;
  background:#fcfefefa;border:1px solid #abc1ca;font-size:.8rem;font-weight:720;line-height:1.2;text-align:center;
  box-shadow:0 2px 9px #173b5026;visibility:hidden;pointer-events:none;
}
.territory-pin:is(.is-anchor,[aria-pressed=true],:hover,:focus-visible) .territory-pin-label{visibility:visible}
.territory-pin:is(:hover,:focus-visible){z-index:4}
.territory-pin:is(:hover,:focus-visible) .territory-pin-dot{background:#f4cc93;box-shadow:0 0 0 5px #ae692d46}
.territory-pin[data-place=gap] .territory-pin-label{color:#6d421d;border-color:#c49e76}
.territory-pin:is([data-place=gap],[data-place=sisteron]) .territory-pin-label{
  bottom:auto;left:auto;right:calc(50% + 10px);top:50%;transform:translateY(-50%);
}
.territory-attribution{
  --credit-inset:clamp(.45rem,1.1vw,1.25rem);
  position:absolute;z-index:7;inset-inline-start:var(--credit-inset);inset-block-end:var(--credit-inset);
  width:max-content;max-width:calc(100% - 2 * var(--credit-inset));
  padding:.17rem .38rem;border-radius:.22rem;background:#f9fcfce8;color:#365764;
  font-size:.68rem;line-height:1.35;
}
.territory-attribution a{text-decoration:underline;text-underline-offset:.18em}
.territory-attribution a:focus-visible{outline-offset:1px}

@media(max-width:850px){
  .territory-inner{grid-template-columns:minmax(0,1fr)}
  .territory-heading{grid-area:1/1;padding:clamp(1.4rem,4vw,2.4rem) var(--gutter) 1.2rem}
  .territory-description{max-width:43ch;margin-top:.7rem}
  .territory-map{grid-area:2/1;min-height:clamp(19.5rem,81vw,23rem)}
  .territory-map::after{background:linear-gradient(180deg,#edf4f6 0%,transparent 14%)}
}
@media(max-width:420px){
  .territory-attribution{inset-block-end:.1rem;padding-block:.1rem}
  .territory-pin{width:28px;height:28px}
  .territory-pin-label{font-size:.75rem}
  .territory-pin[data-place=sisteron] .territory-pin-label{
    bottom:calc(50% + 9px);left:50%;right:auto;top:auto;transform:translateX(-50%);
  }
}
