.family-city-canvas .city-building-post {
  position:absolute;
  top:var(--post-y);
  left:var(--post-x);
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.family-city-canvas .city-building-post [data-city-building] { position:relative; inset:auto; transform:none; }
.city-post-palace { --post-x:var(--home-palace-x); --post-y:var(--home-palace-y); }
.city-post-barracks { --post-x:var(--home-barracks-x); --post-y:var(--home-barracks-y); }
.city-post-workshop { --post-x:var(--home-workshop-x); --post-y:var(--home-workshop-y); }
.court-post-portrait,
.family-city-canvas .city-building-post button.court-post-portrait {
  display:inline-flex; align-items:center; justify-content:center; min-width:42px; min-height:44px;
  width:auto; height:auto; padding:2px; margin:0; gap:5px; border:0;
  border-radius:50%; background:transparent; box-shadow:none; pointer-events:auto; cursor:pointer;
}
.family-city-canvas .city-building-post button.court-post-portrait {
  position:absolute; inset:auto; top:50%; left:calc(100% - 4px);
  min-inline-size:42px; min-block-size:44px; transform:translateY(-50%); z-index:1;
}
.family-city-canvas .city-post-palace button.court-post-portrait,
.family-city-canvas .city-post-workshop button.court-post-portrait{ left:auto; right:calc(100% - 4px); }
.family-city-canvas :is(.city-post-palace,.city-post-workshop) button.court-post-portrait { left:auto; right:calc(100% - 4px); }
.family-city-canvas .city-building-post button.court-post-portrait::before,
.family-city-canvas .city-building-post button.court-post-portrait::after { content:none; display:none; }
.court-post-portrait img { display:block; box-sizing:border-box; width:32px; height:32px; border-radius:50%; object-fit:cover; border:2px solid #f3d291; background:#19463d; box-shadow:0 1px 4px #12251ed9; pointer-events:none; }
/* Draw focus around the face itself; the transparent touch target is larger. */
.ww-world-map .ww-governor,
.ww-world-map .ww-governor:focus {
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.ww-governor-focus { opacity: 0; }
:root:not(.court-pointer-input) .ww-governor:focus-visible .ww-governor-focus { opacity: 1; }
body .court-post-portrait:focus, #modal .court-post-portrait:focus { outline: none; }
.court-post-portrait:focus-visible img { outline: 2px solid #1d6957; outline-offset: 1px; }
@media (max-width:760px) {
  .ww-governor-face { transform:scale(1.34); }
}
@media (hover: hover) { .ww-governor:hover .ww-governor-rim { stroke:#fff8d6; stroke-width:2; } }
.province-art > .court-post-portrait { position:absolute; inset-inline-end:3px; inset-block-end:1px; z-index:2; }
.city-building-dialog > .court-post-portrait { border-radius:22px; background:#214b40; color:#fff5d3; padding-inline:5px 12px; margin-block:5px; max-inline-size:100%; }
.city-building-dialog > .court-post-portrait bdi { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }


/* A vacancy is a status mark. Only a real portrait opens a character dossier. */
.court-post-vacant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #394f44;
  font-size: .83rem;
  font-weight: 650;
}
.court-vacant-glyph {
  display: block;
  box-sizing: border-box;
  flex: none;
  inline-size: 23px;
  block-size: 23px;
  padding: 1px;
  border: 1.5px dashed #dfd3aa;
  border-radius: 50%;
  background: #34463a;
  color: #f4e9ca;
}
.family-city-canvas .city-building-post > .court-post-vacant {
  position: absolute;
  left: calc(100% - 2px);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.family-city-canvas .city-post-palace > .court-post-vacant,
.family-city-canvas .city-post-workshop > .court-post-vacant{
  left: auto;
  right: calc(100% - 2px);
}
.family-city-canvas :is(.city-post-palace,.city-post-workshop) > .court-post-vacant {
  left: auto;
  right: calc(100% - 2px);
}
.province-art > .court-post-vacant {
  position: absolute;
  inset-inline-end: 6px;
  inset-block-end: 6px;
  pointer-events: none;
}
.city-building-dialog > .court-post-vacant { margin-block: 6px; }
.map-legend .map-vacancy-key .court-vacant-glyph { inline-size: 19px; block-size: 19px; }
@media (max-width:760px) {
  .ww-vacant-face { transform: scale(1.25); }
}
