/* Desert Grognards - shared site header and sign-in box. Works on top of the Garage pages and the Slate tools. */
.dgh{position:sticky;top:0;z-index:70;display:flex;align-items:center;gap:14px;width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);align-self:center;padding:8px 18px;
  background:#1d1813;border-bottom:3px solid #000;box-shadow:0 6px 16px rgba(0,0,0,.45);
  margin-top:0;margin-bottom:24px;justify-content:flex-start;flex-wrap:nowrap;border-radius:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;box-sizing:border-box}
.dgh *{box-sizing:border-box}
body.dgh-on{padding-top:0 !important;margin-top:0 !important;overflow-x:clip}
html:has(body.dgh-on){overflow-x:clip}
.dgh-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:#e3d7bf;flex:0 0 auto}
.dgh-logo b{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#8b3a2b;border:3px solid #e3d7bf;
  font:900 15px Impact,"Arial Narrow Bold",sans-serif;color:#fff;letter-spacing:0}
.dgh-logo span{font:900 18px Impact,"Arial Narrow Bold",sans-serif;letter-spacing:2px;text-transform:uppercase;white-space:nowrap}
/* the logo badge: big enough to read, hanging below the bar like a patch (the bar keeps its height) */
.dgh-badge{display:block;width:64px;height:64px;margin:-6px 0 -30px;border-radius:50%;box-shadow:0 4px 12px rgba(0,0,0,.6);position:relative;z-index:1;flex:0 0 auto}
.dgh-nav{display:flex;gap:4px;align-items:center;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;min-width:0}
.dgh-nav::-webkit-scrollbar{display:none}
.dgh-nav a{white-space:nowrap;text-decoration:none;padding:7px 12px;border-radius:6px;font:800 12px/1 system-ui,sans-serif;
  letter-spacing:1px;text-transform:uppercase;color:#c9b99a;transition:background .12s,color .12s}
.dgh-nav a.tool{color:#a5b4fc}
.dgh-nav a:hover{background:#2a231c;color:#fff}
.dgh-nav a.on{background:#e3d7bf;color:#1a1410;box-shadow:2px 2px 0 #000;transform:rotate(-1.5deg)}
.dgh-me{position:relative;flex:0 0 auto}
.dgh-hm{position:relative;margin-left:auto;flex:0 0 auto}
.dgh-hdrop{left:auto;right:0}
.dgh-hdrop small{display:block;font:500 12px system-ui,sans-serif;color:#5a4d3e;margin-top:1px}
.dgh-hi{width:20px;text-align:center}
.dgh-sep{border-top:2px dashed #8a7f66;margin:4px 0}
.dgh-help{all:unset;box-sizing:border-box;flex:0 0 auto;display:flex;align-items:center;gap:6px;text-decoration:none;padding:7px 12px;border-radius:6px;border:1px solid #4a3f33;
  font:800 12px/1 system-ui,sans-serif;letter-spacing:1px;text-transform:uppercase;color:#c9b99a}
.dgh-help:hover,.dgh-help.on,.dgh-help[aria-expanded=true]{background:#2a231c;color:#fff}
.dgh-help:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.dgh-lang{flex:0 0 auto;max-width:150px;padding:7px 8px;border-radius:6px;border:1px solid #4a3f33;background:#1c1712;color:#e8dcc8;font:inherit;font-size:13px;cursor:pointer}
.dgh-lang:hover{background:#2a231c;color:#fff}
.dgh-lang:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.dg-tr-toggle{all:unset;cursor:pointer;margin-left:6px;font-size:11px;text-decoration:underline;opacity:.75}
.dg-tr-toggle:hover{opacity:1}
.dg-tr-toggle:focus-visible{outline:2px solid #f59e0b;outline-offset:2px}
.dgh-btn{all:unset;display:flex;align-items:center;gap:8px;cursor:pointer;color:#e3d7bf;font:700 13px system-ui,sans-serif;padding:3px;border-radius:999px}
.dgh-btn:focus-visible,.dgh-item:focus-visible,.dgh-nav a:focus-visible,.dgh-logo:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.dgh-name{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dgh-caret{font-size:11px;opacity:.8}
.dgh-face{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;overflow:hidden;border:2px solid #b8862b;
  background:#4a4136;color:#e3d7bf;font:900 16px Impact,sans-serif}
.dgh-face img{width:100%;height:100%;object-fit:cover;display:block}
.dgh-signin{display:inline-block;padding:8px 16px;border-radius:8px;background:#8b3a2b;color:#fff;font:900 12px system-ui,sans-serif;
  letter-spacing:1px;text-transform:uppercase;box-shadow:2px 2px 0 #000}
.dgh-drop{position:absolute;right:0;top:calc(100% + 8px);width:250px;background:#f1e8d4;color:#1a1410;border:3px solid #111;
  box-shadow:6px 8px 0 rgba(0,0,0,.45);padding:6px;z-index:80}
.dgh-drop[hidden]{display:none}
.dgh-drop-head{display:flex;gap:10px;align-items:center;padding:8px 8px 10px;border-bottom:2px dashed #8a7f66;margin-bottom:4px}
.dgh-drop-head b{display:block;font-size:15px}
.dgh-drop-head small{color:#5a4d3e;font-size:12px}
.dgh-item{all:unset;display:flex;gap:10px;align-items:center;width:100%;padding:9px 8px;cursor:pointer;font:700 14px system-ui,sans-serif;color:#1a1410;box-sizing:border-box}
.dgh-item:hover{background:#e3d7bf}
.dgh-ico{width:22px;text-align:center}
.dgh-out{border-top:2px dashed #8a7f66;margin-top:4px;color:#8b3a2b}
/* sign-in box */
.dgh-noscroll{overflow:hidden}
.dgh-modal{position:fixed;inset:0;z-index:90;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}
.dgh-panel{position:relative;width:100%;max-width:400px;background:#e3d7bf;color:#1a1410;border:6px solid #111;padding:22px;
  box-shadow:10px 12px 0 rgba(0,0,0,.5);transform:rotate(-.6deg);font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;display:grid;gap:10px}
.dgh-panel h2{margin:0 0 4px;font:900 32px/1 Impact,"Arial Narrow Bold",sans-serif;letter-spacing:2px;color:#8b3a2b;text-transform:uppercase}
.dgh-panel label{display:block;font:800 11px system-ui,sans-serif;letter-spacing:1px;text-transform:uppercase}
.dgh-panel input{display:block;width:100%;margin-top:4px;padding:10px;border:2px solid #111;background:#fffdf5;font:15px system-ui,sans-serif;color:#1a1410;border-radius:0}
.dgh-panel input:focus{outline:3px solid #f59e0b;outline-offset:1px}
.dgh-x{position:absolute;top:8px;right:8px;all:unset;cursor:pointer;padding:4px 10px;background:#d8d4b8;font:900 16px system-ui;box-shadow:2px 2px 0 #000}
.dgh-panel .dgh-x{position:absolute}
.dgh-google{all:unset;text-align:center;padding:11px;border:3px solid #111;background:#fff;font:800 14px system-ui,sans-serif;cursor:pointer}
.dgh-google:hover{transform:translateY(-1px)}
.dgh-or{text-align:center;font-size:12px;color:#5a4d3e}
.dgh-cf{min-height:65px}
.dgh-msg{margin:0;min-height:1.2em;color:#8b1a10;font:700 13px system-ui,sans-serif}
.dgh-msg.ok{color:#2f5d12}
.dgh-go{all:unset;text-align:center;padding:12px;background:#8b3a2b;color:#fff;font:900 14px system-ui,sans-serif;letter-spacing:1px;text-transform:uppercase;cursor:pointer;box-shadow:3px 3px 0 #000}
.dgh-go:disabled{opacity:.6;cursor:default}
.dgh-links{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px}
.dgh-links a,.dgh-forgot{all:unset;cursor:pointer;color:#1a1410;text-decoration:underline;font:600 13px system-ui,sans-serif}
/* phones: logo and profile on one row, menu swipes underneath */
@media (max-width:760px){
  .dgh{flex-wrap:wrap;padding:8px 12px;gap:8px}
  .dgh-logo span{display:none}
  .dgh-badge{width:44px;height:44px;margin:0}
  .dgh-me{order:2}
  .dgh-hm{order:1}
  .dgh-help{padding:7px 9px}
  .dgh-lang{max-width:72px;padding:7px 4px}
  /* the menu wraps onto two centred lines instead of hiding links off the edge (site review 1.1) */
  .dgh-nav{order:3;width:100%;padding-bottom:2px;flex-wrap:wrap;justify-content:center;gap:2px 4px;overflow:visible}
  .dgh-nav a{padding:7px 10px}
  .dgh-name{display:none}
}
/* site banner and maintenance notice (Site admin page, Site tab) */
.dgh-banner{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);align-self:center;padding:8px 18px;background:#2b3b54;color:#fff;font-weight:700;text-align:center;overflow-wrap:anywhere}
.dgh-banner-warn{background:#8b3a2b}
.dgh-maint{position:fixed;inset:0;z-index:85;background:#1a1410;display:flex;align-items:center;justify-content:center;padding:16px}
.dgh-maint-card{background:#efe6cf;border:4px solid #000;box-shadow:8px 10px 0 rgba(0,0,0,.5);padding:28px;max-width:520px;text-align:center}
.dgh-maint-card h2{font-size:2.2rem;margin:0 0 10px}
.dgh-maint-card p{font-size:1.1rem;margin:0 0 16px;overflow-wrap:anywhere}
.dgh-maint-link{border:2px solid #1a1410;background:#fffdf5;padding:6px 12px;font-weight:700;cursor:pointer;min-height:44px}
body.dgh-noscroll-maint{overflow:hidden}
/* read by screen readers, not shown (a page's hidden title, extra labels) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* laptop widths: when the menu doesn't fit, make room in steps (dg-header.js, fitBar) instead of cutting a link short */
.dgh.dgh-tight .dgh-logo span{display:none}
.dgh.dgh-tighter{gap:8px;padding-left:12px;padding-right:12px}
.dgh.dgh-tighter .dgh-nav a{padding:7px 8px}
.dgh.dgh-tighter .dgh-help{padding:7px 9px}
.dgh.dgh-tighter .dgh-fb-t{display:none}
.dgh.dgh-tighter .dgh-lang{max-width:110px}
.dgh.dgh-wrap{flex-wrap:wrap}
.dgh.dgh-wrap .dgh-logo{margin-right:auto}
.dgh.dgh-wrap .dgh-nav{order:3;width:100%;justify-content:center;padding-bottom:2px}
.dgh.dgh-wrap .dgh-fb-t{display:inline}
.dgh.dgh-wrap .dgh-lang{max-width:150px}
