/* An open instrument outline leaves the paper and its contour drawing visible. */
.bd-card .bd-territory {
  --territory-ink: var(--qr-royal, #012a8a);
  position: absolute;
  inset: auto clamp(17px, 3cqw, 52px) clamp(18px, 4cqh, 42px) auto;
  z-index: 2;
  box-sizing: border-box;
  width: clamp(108px, 10.4cqw, 140px);
  padding: 0 7px 3px;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: var(--territory-ink);
  isolation: isolate;
}
.bd-territory::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: currentColor;
  opacity: .73;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 166' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='black' stroke-width='1' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke' d='M5 2H44Q48 2 51 6L56 12Q59 16 64 16H123Q126.5 16 126.5 20V160Q126.5 164 122.5 164H5Q1.5 164 1.5 160V6Q1.5 2 5 2Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.bd-territory .bd-region { padding: 1px 0 0; }
.bd-region > p {
  width: max-content;
  margin: 0 3px 0 auto;
  font: 500 clamp(8px, .72cqw, 10px)/1.35 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .085em;
  color: var(--territory-ink);
  text-shadow: 0 0 2px #f4f8ff, 0 0 4px #f4f8ff;
}
.bd-territory .bd-region > svg {
  display: block;
  width: 74%;
  height: auto;
  margin: 6px auto 2px;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bd-state-line {
  stroke: var(--territory-ink);
  stroke-width: 1.7;
  filter: drop-shadow(0 .6px .45px #f6f9ff);
}
.bd-territory .bd-river-light {
  stroke: #e6faff;
  stroke-width: 2.5;
  stroke-dasharray: 3.1 108;
  stroke-dashoffset: -78;
  filter: drop-shadow(0 0 .95px #287cdc) drop-shadow(0 0 1.5px #68baff);
}
@media (prefers-reduced-motion: no-preference) {
  .bd-territory[data-lit] .bd-river-light {
    animation: bd-border-trace 3.8s linear infinite;
  }
  @keyframes bd-border-trace {
    0% { opacity: 0; stroke-dashoffset: 3.1; }
    5% { opacity: 1; }
    87% { opacity: 1; }
    94%, 100% { opacity: 0; stroke-dashoffset: -100; }
  }
}
.bd-territory .bd-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  align-items: center;
  margin: 0 1px;
  border-top: 1px solid rgb(45 70 91 / .49);
}
.bd-social > a {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--territory-ink);
  background: transparent;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.bd-social > a svg {
  display: block;
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 .5px .5px #f6f9ff);
}
.bd-social > .bd-save svg { fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.bd-social > .bd-linkedin svg { fill: currentColor; stroke: none; }
.bd-social > a:is(:hover, :focus-visible) { color: #005baa; }
.bd-territory .bd-lunch {
  margin: 0 0 7px; text-align: center;
  color: var(--territory-ink);
  font: 400 clamp(9px, .82cqw, 11px)/1.4 "IBM Plex Mono", monospace;
}
.bd-card .bd-social > a:focus-visible { outline: 1.5px solid currentColor; outline-offset: -3px; border-radius: 3px; }
@media (max-width: 650px) {
  .bd-card .bd-territory {
    right: max(13px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}
@media print {
  .bd-territory .bd-river-light { animation: none; }
}
