/* Dearhall mind map. Pairs with /map.js. Uses the site tokens from /site.css, with fallbacks. */
.mm{--mm-ink:var(--ink,#0A1730);--mm-mut:var(--mut,#5A6472);--mm-line:var(--line,#DCE0E5);--mm-soft:var(--soft,#F5F6F8);--mm-navy:var(--navy,#0A1F44);--mm-green:var(--green,#0F4D38);--mm-r:var(--r,3px);
  --mm-h:clamp(560px,calc(100vh - 120px),900px);position:relative;color:var(--mm-ink);font-family:"Geist",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;-webkit-tap-highlight-color:transparent}
@supports (height:100svh){.mm{--mm-h:clamp(560px,calc(100svh - 120px),900px)}}
.mm[data-size=small],.mm.mm-small{--mm-h:420px}
/* hold the room before the script has built it */
.mm:not(.mm-on){min-height:calc(var(--mm-h) + 177px)}
.mm[data-search=off]:not(.mm-on){min-height:calc(var(--mm-h) + 66px)}
.mm[data-size=small]:not(.mm-on){min-height:calc(var(--mm-h) + 69px)}
.mm p{margin:0}
.mm button{-webkit-appearance:none;appearance:none;font-family:inherit}
.mm button:focus-visible{outline:3px solid rgba(15,77,56,.35);outline-offset:1px}

/* search */
.mm-search{width:min(760px,100%);margin:0 auto 14px}
.mm-bleed .mm-search{width:min(760px,calc(100% - 44px))}
.mm-field{position:relative;max-width:520px;margin:0 auto}
.mm-input{display:block;width:100%;height:48px;margin:0;padding:0 46px 0 42px;border:1px solid #C3C9D2;border-radius:var(--mm-r);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='6.8' cy='6.8' r='4.8' fill='none' stroke='%235A6472' stroke-width='1.4'/%3E%3Cpath d='M10.4 10.4l4 4' stroke='%235A6472' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat 15px 50%;
  font:500 16px/1 "Geist",system-ui,sans-serif;color:var(--mm-ink);-webkit-appearance:none;appearance:none}
.mm-input::placeholder{color:var(--mm-mut);opacity:1;font-weight:400}
.mm-input:focus{outline:3px solid rgba(15,77,56,.35);outline-offset:1px;border-color:var(--mm-ink)}
.mm-clear{position:absolute;right:2px;top:2px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:var(--mm-r);background:none;color:var(--mm-mut);cursor:pointer;padding:0}
.mm-clear:hover{color:var(--mm-ink)}
.mm-clear[hidden]{display:none}
.mm-results{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:6;margin:0;padding:4px;list-style:none;text-align:left;background:#fff;border:1px solid var(--mm-line);border-radius:4px;box-shadow:0 14px 30px -14px rgba(10,23,48,.28),0 2px 6px rgba(10,23,48,.05)}
.mm-results[hidden]{display:none}
.mm-res{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:baseline;gap:10px;min-height:40px;padding:10px 10px 9px;border-radius:2px;cursor:pointer;font-size:15px;line-height:1.3}
.mm-res.mm-cur{background:var(--mm-soft)}
.mm-rn{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mm-none{padding:10px;font-size:14px;color:var(--mm-mut)}
.mm-k{font-family:"Geist Mono",ui-monospace,Menlo,monospace;font-size:10px;font-weight:500;letter-spacing:.12em;line-height:1.4;text-transform:uppercase;color:var(--mm-mut)}
.mm-ex{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:12px}
.mm-exb{height:34px;padding:0 13px;border:1px solid var(--mm-line);border-radius:var(--mm-r);background:#fff;font-size:13.5px;font-weight:500;line-height:1;color:var(--mm-ink);cursor:pointer;white-space:nowrap}
.mm-exb:hover{border-color:var(--mm-ink)}
.mm-exb.mm-cur{background:var(--mm-navy);border-color:var(--mm-navy);color:#fff}

/* stage: no border, no ground */
.mm-stage{position:relative;height:var(--mm-h);overflow:hidden;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:default}
.mm-small .mm-stage{touch-action:pan-y pinch-zoom}
.mm-graph,.mm-graph .force-graph-container{width:100%;height:100%}
.mm-graph canvas{display:block}
.mm-small .mm-stage.mm-zoomed{cursor:grab}
.mm-stage.mm-point{cursor:pointer}
.mm-stage.mm-pan,.mm-stage.mm-grab{cursor:grabbing}

/* how to use it, inside the stage, until the first click or drag */
.mm-tips{position:absolute;left:16px;top:18px;z-index:1;pointer-events:none;font-family:"Geist Mono",ui-monospace,Menlo,monospace;font-size:10.5px;font-weight:500;letter-spacing:.1em;line-height:1.95;text-transform:uppercase;color:var(--mm-mut);text-shadow:0 0 2px #fff,0 0 4px #fff,0 0 6px #fff;transition:opacity .45s ease,visibility 0s linear .45s}
.mm-bleed .mm-tips{left:max(16px,calc((100% - 1120px)/2 + clamp(22px,5vw,56px)))}
.mm-used .mm-tips{opacity:0;visibility:hidden}

/* card beside a dot */
.mm-card{position:absolute;left:0;top:0;z-index:3;box-sizing:border-box;width:max-content;min-width:148px;max-width:236px;padding:11px 13px 12px;text-align:left;background:#fff;border:1px solid var(--mm-line);border-radius:4px;box-shadow:0 12px 26px -12px rgba(10,23,48,.26),0 1px 3px rgba(10,23,48,.06);pointer-events:none;opacity:0;visibility:hidden;transition:opacity .08s linear,visibility 0s linear .08s;-webkit-user-select:none;user-select:none}
.mm-card.mm-show{opacity:1;visibility:visible;transition:opacity .08s linear}
.mm-card.mm-act{pointer-events:auto;cursor:default}
.mm-card.mm-away{opacity:0;visibility:hidden;transition:none}
.mm-n{font-size:15.5px;font-weight:600;letter-spacing:-.01em;line-height:1.25;margin-top:3px;text-wrap:balance}
.mm-l{font-size:13px;line-height:1.38;color:var(--mm-mut);margin-top:3px;text-wrap:pretty}
.mm-e{font-size:13px;line-height:1.38;margin-top:6px}
.mm-hide{display:inline-flex;align-items:center;height:30px;margin-top:10px;padding:0 10px;border:1px solid #C3C9D2;border-radius:var(--mm-r);background:#fff;font-size:12.5px;font-weight:500;line-height:1;color:var(--mm-ink);cursor:pointer}
.mm-hide:hover{border-color:var(--mm-ink)}

/* zoom */
.mm-zoom{position:absolute;right:16px;bottom:16px;z-index:2;display:flex;gap:6px}
.mm-bleed .mm-zoom{right:max(16px,calc((100% - 1120px)/2 + clamp(22px,5vw,56px)))}
.mm-zoom.mm-under{visibility:hidden}
/* on the full map the buttons wait until the pointer is over the stage; a touch screen always shows them */
.mm-full .mm-zoom{opacity:0;transition:opacity .18s ease}
.mm-full .mm-stage:hover .mm-zoom,.mm-full .mm-zoom:focus-within{opacity:1}
@media(hover:none){.mm-full .mm-zoom{opacity:1}}
.mm-zb{width:32px;height:32px;display:grid;place-items:center;padding:0;border:1px solid var(--mm-line);border-radius:var(--mm-r);background:#fff;color:var(--mm-ink);cursor:pointer}
.mm-zb:hover{border-color:var(--mm-ink)}
.mm-zb:disabled{color:#B5BBC5;border-color:var(--mm-line);cursor:default}

/* under the stage */
.mm-foot{width:min(760px,100%);margin:8px auto 0;text-align:center}
.mm-bleed .mm-foot{width:min(760px,calc(100% - 44px))}
.mm-hidden{min-height:24px;margin:0 0 8px;font-size:13.5px;line-height:24px;color:var(--mm-mut)}
.mm-link{border:0;background:none;padding:0;margin:0 2px;font-size:inherit;font-weight:500;line-height:inherit;color:var(--mm-ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer}
.mm-link:hover{color:var(--mm-green)}
.mm-help{font-family:"Geist Mono",ui-monospace,Menlo,monospace;font-size:11px;font-weight:500;letter-spacing:.1em;line-height:1.7;text-transform:uppercase;color:var(--mm-mut);text-wrap:balance}

@media(max-width:700px){
  .mm{--mm-h:78vh}
  @supports (height:100svh){.mm{--mm-h:78svh}}
  .mm[data-size=small],.mm.mm-small{--mm-h:420px}
  .mm:not(.mm-on){min-height:calc(var(--mm-h) + 270px)}
  .mm[data-search=off]:not(.mm-on){min-height:calc(var(--mm-h) + 110px)}
  .mm[data-size=small]:not(.mm-on){min-height:calc(var(--mm-h) + 100px)}
  .mm-tips{left:14px;top:12px;font-size:9.5px;letter-spacing:.08em;line-height:1.85}
  .mm-bleed .mm-tips{left:14px}
  .mm-card{max-width:222px;padding:10px 12px 11px}
  .mm-zoom{right:12px;bottom:12px}
  .mm-bleed .mm-zoom{right:12px}
  .mm-help{font-size:10.5px;letter-spacing:.08em}
}
@media(pointer:coarse){
  .mm-exb{height:44px;padding:0 14px}
  .mm-zb{width:38px;height:38px}
  .mm-hide{height:40px;padding:0 13px;font-size:13.5px}
  .mm-res{min-height:44px;padding-block:12px 11px}
  .mm-hidden{min-height:44px;line-height:44px;margin-bottom:0}
  .mm-link{padding:12px 4px}
}
@media(prefers-reduced-motion:reduce){.mm *,.mm-card,.mm-card.mm-show{transition:none!important}}
