dialog#modal[data-volunteer-badge] {
  width: min(430px,calc(100% - 24px));
  padding: clamp(15px,4vw,24px);
}
.vb-display { text-align: center }
.vb-hanger {
  display: block; width: 96px; height: 46px; margin: 0 auto -5px;
  position: relative; z-index: 1; pointer-events: none;
}
.vb-hanger::before, .vb-hanger::after {
  content: ''; position: absolute; top: 0; width: 13px; height: 36px;
  background: var(--accent); border-inline: 2px solid var(--hero);
}
.vb-hanger::before { left: 30px; transform: skewX(32deg) }
.vb-hanger::after { right: 30px; transform: skewX(-32deg) }
.vb-hanger i {
  position: absolute; z-index: 1; top: 28px; left: 40px; width: 16px; height: 19px;
  border: 3px solid #a99b78; border-radius: 7px; background: #e8ddc5;
}
.vb-card {
  display: block; position: relative; isolation: isolate; margin: 0 auto;
  width: 100%; max-width: 330px; padding: 0; overflow: hidden; text-align: left;
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 17px; box-shadow: 0 8px 20px #1c2d2119; cursor: pointer;
}
.vb-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
.vb-card [hidden] { display: none }
.vb-front,.vb-back { display: block; min-height: 268px }
.vb-cap {
  position: relative; display: block; min-height: 112px;
  background: var(--hero); color: var(--hero-ink); overflow: hidden;
}
.vb-slot {
  position: absolute; width: 33px; height: 5px; top: 11px; left: calc(50% - 16.5px);
  background: #101c1c; border-radius: 100px; box-shadow: 0 1px 0 #fff5;
}
.vb-brand { display: grid; gap: 3px; position: relative; z-index: 1; width: fit-content; padding: 30px 20px 15px; font-size: .81rem; letter-spacing: .11em }
.vb-title { font: 650 1.62rem/1.2 var(--serif); letter-spacing: .09em }
.vb-cap img { position: absolute; right: -3%; bottom: -8%; width: 57%; max-height: 110%; object-fit: contain }
.vb-paper { display: block; padding: 16px 20px 9px }
.vb-owner { display: block; font: 650 clamp(1.55rem,6vw,2rem)/1.2 var(--serif); overflow-wrap: anywhere }
.vb-owner.vb-name-long { font-size: 1.27rem; line-height: 1.4 }
.vb-role { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 600; font-size: .89rem }
.vb-orgs { display: grid; gap: 3px; border-top: 1px solid var(--line); padding-top: 9px; margin-top: 11px; line-height: 1.45; overflow-wrap: anywhere; font-size: .92rem }
.vb-label,.vb-orgs small,.vb-stat>span { color: var(--muted); font-size: .82rem }
.vb-turn { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 7px 17px 10px; color: var(--accent); font-size: .81rem }
.vb-back { padding: 26px 18px 10px }
.vb-back-title { display: flex; gap: 7px; align-items: center; font: 650 1.28rem/1.4 var(--serif); padding-bottom: 12px; border-bottom: 2px solid var(--accent) }
.vb-back-title svg { width: 1.4em; height: 1.4em; color: var(--accent) }
.vb-metrics { display: grid; gap: 0 }
.vb-stat { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); line-height: 1.45 }
.vb-stat strong { overflow-wrap: anywhere; font-weight: 650 }
.vb-all-orgs,.vb-actions { max-width: 330px; margin: 12px auto 0 }
.vb-all-orgs { text-align: left; font-size: .88rem }
.vb-all-orgs summary { cursor: pointer; color: var(--accent); padding-block: 7px }
.vb-all-orgs ul { padding-left: 18px; line-height: 1.6; overflow-wrap: anywhere }
.vb-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px }
.vb-actions>* { min-height: 44px }
@media (max-width: 739px) {
  dialog#modal[data-volunteer-badge] {
    width: 100%; max-width: 520px; margin-inline: auto;
    padding-bottom: max(18px,env(safe-area-inset-bottom));
  }
}
