/* The tools share the site's three destinations without adding homepage content. */
.topbar .brand-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0}
.brand-row>.singul-brand{min-width:0;flex:1}
.tool-menu{flex:none}
.tool-menu summary{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:44px;min-height:52px;padding:4px;color:var(--singul-accent);font-size:12px;line-height:1.2;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
.tool-menu summary::-webkit-details-marker{display:none}
.tool-menu summary:focus-visible{outline:2px solid var(--singul-accent);outline-offset:3px}
.tool-menu summary svg{width:23px;height:18px;stroke-width:1.6}
.tool-menu nav{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:30;max-height:calc(100dvh - 120px - env(safe-area-inset-top,0px));overflow-y:auto;overscroll-behavior:contain;padding:4px 16px;background:var(--singul-hi);border:1px solid var(--singul-rule);border-radius:4px}
.tool-menu nav a{display:flex;align-items:center;min-height:52px;padding:13px 4px;color:var(--singul-fg);font-size:15px;line-height:1.65;text-decoration:none;overflow-wrap:anywhere}
.tool-menu nav a+a{border-top:1px solid var(--singul-rule)}
.tool-menu nav a[aria-current=page]{color:var(--singul-accent);font-weight:700}
.tool-menu nav a:hover{color:var(--singul-accent)}

/* Match the homepage menu: quiet horizontal control and an ivory ruled panel. */
.tool-menu summary{flex-direction:row;gap:10px;min-height:52px;font-size:15px;letter-spacing:.05em;color:var(--singul-fg)}
.tool-menu nav{top:100%;border-radius:0 0 6px 6px;padding:4px 16px 12px;background:var(--singul-hi)}
.tool-menu nav a{transition:color 200ms var(--ease-out),background-color 200ms var(--ease-out)}
.tool-menu summary svg{stroke:currentColor;fill:none}
.tool-menu summary path{transform-origin:12px 9px;transition:transform 450ms var(--ease-out),opacity 240ms ease}
.tool-menu summary[aria-expanded=true] path:nth-child(1){transform:translateY(6px) rotate(45deg);transform-origin:12px 3px}
.tool-menu summary[aria-expanded=true] path:nth-child(2){opacity:0}
.tool-menu summary[aria-expanded=true] path:nth-child(3){transform:translateY(-6px) rotate(-45deg);transform-origin:12px 15px}
@media(max-width:380px){.tool-menu summary span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}}
